bug79790.phpt 322 B

123456789101112131415
  1. --TEST--
  2. Bug #79790: "Illegal offset type" exception during AST evaluation not handled properly
  3. --FILE--
  4. <?php
  5. b();
  6. function b($a = array()[array ()]) {
  7. ++$c[function () {}];
  8. }
  9. ?>
  10. --EXPECTF--
  11. Fatal error: Uncaught TypeError: Illegal offset type in %s:%d
  12. Stack trace:
  13. #0 %s(%d): b()
  14. #1 {main}
  15. thrown in %s on line %d