|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-27 02:27 UTC] judas dot iscariote at gmail dot com
[2007-07-27 03:33 UTC] mattsch at gmail dot com
[2007-07-27 07:12 UTC] derick@php.net
[2007-07-27 08:57 UTC] rquadling@php.net
[2007-07-27 09:03 UTC] rquadling@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 19:00:01 2025 UTC |
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.