regression_005.phpt 257 B

1234567891011121314
  1. --TEST--
  2. Test possible constant naming regression on procedural scope
  3. --FILE--
  4. <?php
  5. class Obj
  6. {
  7. const return = 'yep';
  8. }
  9. const return = 'nope';
  10. ?>
  11. --EXPECTF--
  12. Parse error: syntax error, unexpected token "return", expecting identifier in %s on line %d