From:             stochnagara at hotmail dot com
Operating system: windows xp
PHP version:      5.1.0RC1
PHP Bug Type:     Scripting Engine problem
Bug description:  Invalid error line number

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

Reply via email to