From:             [EMAIL PROTECTED]
Operating system: All
PHP version:      5.0.1
PHP Bug Type:     Feature/Change Request
Bug description:  Enhancement for error message for abstract classes

Description:
------------
When class 'B' extends another class 'A' which is declared abstract but
does not implement all the methods, the error message is:

Fatal Error: Class B contains 1 abstract methods and must therefore be
declared abstract (A::sampleMethod) in ....

Two things:
1) It would be nice to account for singularity of the word method if only
one method is missing
2) It would be nice to also tell the user that he can also implement the
remaining methods:

Fatal Error: Class B contains 1 abstract method and must therefore be
declared abstract or implement the remaining methods (A::sampleMethod) in
....

Just sugar, but anyway ;)


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

Reply via email to