#34202 [Opn->Bgs]: Invalid error line number

From: Date: Sun, 21 Aug 2005 10:24:25 +0000
Subject: #34202 [Opn->Bgs]: Invalid error line number
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83843@lists.php.net to get a copy of this message
ID: 34202 Updated by: derick@php.net 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

« previous php.bugs (#83843) next »