|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-05 18:16 UTC] nlopess@php.net
[2020-02-07 06:11 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 00:00:02 2025 UTC |
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 ....