bug70785.phpt 417 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Bug #70785 (Infinite loop due to exception during identical comparison)
  3. --FILE--
  4. <?php
  5. set_error_handler(function($no, $msg) {
  6. throw new Exception($msg);
  7. });
  8. try {
  9. if ($a === null) { // ZEND_VM_SMART_BRANCH
  10. undefined_function('Null');
  11. }
  12. } catch (Exception $e) {
  13. }
  14. try {
  15. $c === 3; // ZEND_VM_NEXT_OPCODE
  16. undefined_function();
  17. } catch (Exception $e) {
  18. }
  19. ?>
  20. okey
  21. --EXPECT--
  22. okey