diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 48b9a8815d2..91c21599e3d 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -6370,7 +6370,7 @@ ZEND_METHOD(ReflectionReference, getId) } if (!REFLECTION_G(key_initialized)) { - if (php_random_bytes_throw(&REFLECTION_G(key_initialized), 16) == FAILURE) { + if (php_random_bytes_throw(&REFLECTION_G(key), 16) == FAILURE) { RETURN_THROWS(); }