From:             a at b dot c dot de
Operating system: N/A
PHP version:      5.0.1
PHP Bug Type:     Documentation problem
Bug description:  listing multiple interface implementations

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 bug report at http://bugs.php.net/?id=29984&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29984&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29984&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29984&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29984&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29984&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29984&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29984&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29984&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29984&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29984&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29984&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29984&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29984&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29984&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29984&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29984&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29984&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29984&r=float

Reply via email to