bug51709_1.phpt 286 B

12345678910111213141516
  1. --TEST--
  2. Bug #51709 (Can't use keywords as method names)
  3. --FILE--
  4. <?php
  5. class foo {
  6. static function for() {
  7. echo "1";
  8. }
  9. }
  10. ?>
  11. ===DONE===
  12. <?php exit(0); ?>
  13. --EXPECTF--
  14. Parse error: syntax error, unexpected %s, expecting %s in %sbug51709_1.php on line %d