ID: 42115 Comment by: judas dot iscariote at gmail dot com Reported By: mattsch at gmail dot com Status: Open Bug Type: Class/Object related Operating System: Gentoo Linux PHP Version: 5.2.3 New Comment:
No, PHP is a dynamic language, I dont see why this should raise any kind of error 1. does not cause any problem. 2.it is perfectly valid code. Previous Comments: ------------------------------------------------------------------------ [2007-07-26 20:14:20] mattsch at gmail dot com Description: ------------ Contrary to the documentation, you're allowed to put the static keyword before the visibility keyword. Shouldn't this throw an E_STRICT warning? Reproduce code: --------------- <? class foo { static public function bar($foo){ echo $foo; } } foo::bar('test'); ?> Expected result: ---------------- E_STRICT: You cannot declare static before a visibility keyword. Actual result: -------------- Echoes "test" without warning. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42115&edit=1