|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-12 18:37 UTC] sixd@php.net
-Status: Open
+Status: Bogus
[2010-05-12 18:37 UTC] sixd@php.net
[2010-05-12 19:05 UTC] razvan dot gavril at gmail dot com
[2010-05-12 19:13 UTC] razvan dot gavril at gmail dot com
[2011-09-01 21:53 UTC] tyrael@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 09:00:01 2025 UTC |
Description: ------------ Is no longer possible to name a class methods using names that are reserved keywords like : 'break', 'for', 'goto'. It used to work with previous php versions. If this is a 'feature', what's the point ? Test script: --------------- <?php class foo { static function for() { echo "1"; } static function goto() { echo "2"; } } foo::for(); foo::goto(); Expected result: ---------------- Display: 12 Actual result: -------------- PHP Parse error: syntax error, unexpected T_FOR, expecting T_STRING in /etc/asterisk/manager.d/test.php on line 4