Return to bug51709_2.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / basic |
1.1 ! misho 1: --TEST-- ! 2: Bug #51709 (Can't use keywords as method names) ! 3: --FILE-- ! 4: <?php ! 5: ! 6: class foo { ! 7: static function goto() { ! 8: echo "1"; ! 9: } ! 10: } ! 11: ! 12: ?> ! 13: ===DONE=== ! 14: <?php exit(0); ?> ! 15: --EXPECTF-- ! 16: Parse error: syntax error, unexpected T_GOTO, expecting T_STRING in %sbug51709_2.php on line %d