php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #29984 listing multiple interface implementations
Submitted: 2004-09-05 13:42 UTC Modified: 2004-09-05 18:16 UTC
From: a at b dot c dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.1 OS: N/A
Private report: No CVE-ID: None
 [2004-09-05 13:42 UTC] a at b dot c dot de
Description:
------------
Manual page: language.oop5.interfaces.php, second paragraph, last sentence.

Reads:
"Classes may implement more than one interface if desired by listing each interface split by a space."

Should read:
"Classes may implement more than one interface if desired by listing each interface split by a comma."


Reproduce code:
---------------
interface if1{function f1();}
interface if2{function f2();}

class foo implements f1 f2
{
function f1(){}
}


Expected result:
----------------
An error message:
Fatal error: Class foo contains 1 abstract methods and must therefore be declared abstract (if2::f2) in ....


Actual result:
--------------
An error message:
Parse error: parse error, unexpected T_STRING, expecting '{' in ....

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-05 18:16 UTC] nlopess@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 nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=f296e4b29810d653e1318baba70aa49df4f887ce
Log: fix #29984: typo
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 16:01:35 2024 UTC