|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-21 12:24 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 02:00:01 2025 UTC |
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