php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30201 Wrong interface description
Submitted: 2004-09-22 23:20 UTC Modified: 2004-09-23 03:30 UTC
From: sveta at microbecal dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.0 OS: Windows XP
Private report: No CVE-ID: None
 [2004-09-22 23:20 UTC] sveta at microbecal dot com
Description:
------------
In manual I see:
Object interfaces allow you to create code which specifies which methods and *variables* a class must implement...

But when I try to specifie a variable in my interface, I get next error:

Fatal error: Interfaces may not include member variables in blah-blah-blah/script.php on line 25

Reproduce code:
---------------
interface Test {

public $var;

}

Expected result:
----------------
Fatal error: Interfaces may not include member variables in blah-blah-blah/script.php on line 25


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-23 03:30 UTC] curt@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of curt
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=716ae95281477b59a737f10360ffe63af8959bf4
Log: Fix bug #30201
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 16:01:33 2025 UTC