bug72107.phpt 304 B

1234567891011121314
  1. --TEST--
  2. Bug #72107: Segfault when using func_get_args as error handler
  3. --FILE--
  4. <?php
  5. set_error_handler('func_get_args');
  6. function test($a) {
  7. echo $undef;
  8. }
  9. test(1);
  10. ?>
  11. --EXPECTF--
  12. Warning: Cannot call func_get_args() dynamically in %s on line %d
  13. Notice: Undefined variable: undef in %s on line %d