bug60613.phpt 333 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #60613 (Segmentation fault with $cls->{expr}() syntax)
  3. --FILE--
  4. <?php
  5. class Cls {
  6. function __call($name, $arg) {
  7. }
  8. }
  9. $cls = new Cls();
  10. $cls->{0}();
  11. $cls->{1.0}();
  12. $cls->{true}();
  13. $cls->{false}();
  14. $cls->{null}();
  15. echo "ok\n";
  16. ?>
  17. --EXPECTF--
  18. Fatal error: Method name must be a string in %sbug60613.php on line %d