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