|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-12-08 19:00 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2014-12-08 19:00 UTC] requinix@php.net
[2014-12-09 13:15 UTC] walid dot wah at gmail dot com
[2014-12-09 19:03 UTC] requinix@php.net
[2014-12-09 19:03 UTC] requinix@php.net
-Type: Feature/Change Request
+Type: Bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
Description: ------------ calling a non existed static method is causing to call the shared parents' non static method Test script: --------------- <?php class Magic { public function delete() { echo "OMG CALLED!!".PHP_EOL; } }; class EmptyClass extends Magic { }; class MethodTest extends Magic { public function omg() { EmptyClass::delete(); } }; $obj = new MethodTest; $obj->omg(); ?> Expected result: ---------------- PHP Fatal error: Call to undefined method EmptyClass::delete() Actual result: -------------- it calls the non static inherited delete() method!