xref: /PHP-8.4/ext/opcache/tests/jit/bind_static.phpt (revision c16ad918)
1--TEST--
2Bind static may throw
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--FILE--
8<?php
9function test() {
10    static $N = UNDEFINED;
11    throw new Exception;
12}
13try {
14    test();
15} catch (Error $e) {
16    echo $e->getMessage(), "\n";
17}
18
19?>
20--EXPECT--
21Undefined constant "UNDEFINED"
22