|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-11-10 15:00 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2016-11-10 15:00 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ PHP does not throw E_DEPRECATED exception when non static method calls as static inside object. Test script: --------------- <?php class Foo { public function bar() { echo "1"; } public function bar2() { static::bar(); } } $class = new Foo(); //throw E_DEPRECATED $class::bar(); //!!! no exception $class->bar2(); Expected result: ---------------- I expect 2 E_DEPRECATED Actual result: -------------- $class::bar() - throw Exception but $class->bar2() - work without exception