xref: /php-src/ext/opcache/tests/jit/assign_043.phpt (revision c16ad918)
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.protect_memory=1
8--FILE--
9<?php
10set_error_handler(function($_, $m) {
11    throw new Exception($m);
12});
13try {
14    $a = $b;
15    NOT_REACHED;
16} catch (Exception $e) {
17    echo $e->getMessage(), "\n";
18}
19?>
20--EXPECT--
21Undefined variable $b
22