-
-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
Consider the following code:
const FOO = "a";
function foo() {
static $a = FOO;
}
uopz_set_static("foo", ["a" => 42]);
var_dump(uopz_get_static("foo")["a"]);
foo();Setting the static variable to 42 works fine, as the following var_dump() shows, but calling foo() triggers an assertion error in a debug build, and likely a segfault in release builds, as of PHP 8.3.0. With previous PHP versions the code works as expected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels