23 lines
344 B
PHP
23 lines
344 B
PHP
--TEST--
|
|
Bind static may throw
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.file_update_protection=0
|
|
opcache.jit_buffer_size=1M
|
|
--FILE--
|
|
<?php
|
|
function test() {
|
|
static $N = UNDEFINED;
|
|
throw new Exception;
|
|
}
|
|
try {
|
|
test();
|
|
} catch (Error $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Undefined constant "UNDEFINED"
|