File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / basic / bug51709_1.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

--TEST--
Bug #51709 (Can't use keywords as method names)
--FILE--
<?php

class foo {
        static function for() {
                echo "1";
        }
}

?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
Parse error: syntax error, unexpected T_FOR, expecting T_STRING in %sbug51709_1.php on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>