2015-10-26 03:15:17 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #70785 (Infinite loop due to exception during identical comparison)
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
set_error_handler(function($no, $msg) {
|
2020-02-03 21:52:20 +00:00
|
|
|
throw new Exception($msg);
|
2015-10-26 03:15:17 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
try {
|
2020-02-03 21:52:20 +00:00
|
|
|
if ($a === null) { // ZEND_VM_SMART_BRANCH
|
|
|
|
undefined_function('Null');
|
|
|
|
}
|
2015-10-26 03:15:17 +00:00
|
|
|
} catch (Exception $e) {
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
2020-02-03 21:52:20 +00:00
|
|
|
$c === 3; // ZEND_VM_NEXT_OPCODE
|
|
|
|
undefined_function();
|
2015-10-26 03:15:17 +00:00
|
|
|
} catch (Exception $e) {
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
okey
|
|
|
|
--EXPECT--
|
|
|
|
okey
|