1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/opcache/tests/jit/bind_static.phpt
Daniil Gentili 2ca142ecd8 Improve jit tests
Closes GH-12425
2023-11-14 20:09:27 +01:00

23 lines
345 B
PHP

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