xref: /PHP-8.1/ext/opcache/tests/jit/assign_043.phpt (revision b5641137)
1--TEST--
2JIT ASSIGN: Undef var notice promoted to exception
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11set_error_handler(function($_, $m) {
12    throw new Exception($m);
13});
14try {
15    $a = $b;
16    NOT_REACHED;
17} catch (Exception $e) {
18    echo $e->getMessage(), "\n";
19}
20?>
21--EXPECT--
22Undefined variable $b
23