#29984 [Opn->Csd]: listing multiple interface implementations

From: Date: Sun, 05 Sep 2004 16:17:05 +0000
Subject: #29984 [Opn->Csd]: listing multiple interface implementations
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969363819@lists.php.net to get a copy of this message
ID: 29984 Updated by: nlopess@php.net Reported By: a at b dot c dot de -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: N/A PHP Version: 5.0.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2004-09-05 13:42:01] 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 .... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29984&edit=1

« previous php.doc (#969363819) next »