ID: 34202 Updated by: [EMAIL PROTECTED] Reported By: stochnagara at hotmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: windows xp PHP Version: 5.1.0RC1 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php . Previous Comments: ------------------------------------------------------------------------ [2005-08-21 08:31:23] stochnagara at hotmail dot com Description: ------------ Incorrect implementations of interface functions are shown as fatal errors as expected but a wrong line number is given. The error shows the line where the declaration of the class begins instead of the line where the function is incorrectly implemented. Reproduce code: --------------- <? //line 1 class foo implements ArrayAccess { //line 2 function offsetSet() {} //line 3 } //line 4 ?> Expected result: ---------------- Fatal error: Declaration of foo::offsetSet() must be compatible with that of ArrayAccess::offsetSet() in ...\index.php on line 3 Actual result: -------------- Fatal error: Declaration of foo::offsetSet() must be compatible with that of ArrayAccess::offsetSet() in ...\index.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34202&edit=1