23 lines
408 B
PHP
23 lines
408 B
PHP
--TEST--
|
|
JIT ASSIGN: Undef var notice promoted to exception
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.file_update_protection=0
|
|
opcache.jit_buffer_size=1M
|
|
opcache.protect_memory=1
|
|
--FILE--
|
|
<?php
|
|
set_error_handler(function($_, $m) {
|
|
throw new Exception($m);
|
|
});
|
|
try {
|
|
$a = $b;
|
|
NOT_REACHED;
|
|
} catch (Exception $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Undefined variable $b
|