039.phpt 266 B

123456789101112131415161718
  1. --TEST--
  2. Handling of undef variable exception in JMP_NULL
  3. --FILE--
  4. <?php
  5. set_error_handler(function($_, $m) {
  6. throw new Exception($m);
  7. });
  8. try {
  9. $foo?->foo;
  10. } catch (Exception $e) {
  11. echo $e->getMessage(), "\n";
  12. }
  13. ?>
  14. --EXPECT--
  15. Undefined variable $foo