1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/opcache/tests/jit/bind_static.phpt
2024-01-15 09:39:13 +01:00

22 lines
317 B
PHP

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