|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-31 16:56 UTC] crescentfreshpot at yahoo dot com
[2007-11-12 10:07 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 14:00:02 2025 UTC |
Description: ------------ As you can see from the test case, the reported message is wrong. The call type is static on class B, while the error reports a dynamic (instance) call on class A, which is misleading for debugging. Reproduce code: --------------- <?php class B { function x() { } } class A { function m() { B::g(); } } $a = new A(); $a->m(); Expected result: ---------------- Fatal error: Call to undefined static function: b::g() in x.php on line 10 Actual result: -------------- Fatal error: Call to undefined method: a->g() in x.php on line 10