|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-02 14:10 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 16:00:01 2025 UTC |
Description: ------------ Every class method can be called as static: A wrote a class without static method, but i can call any method as static method. Reproduce code: --------------- <?php class Test { public function nonStatic() { echo 'Hola Non-Static'; } } Test::nonStatic(); ?> Expected result: ---------------- a error message or exception Actual result: -------------- Hola Non-Static