php-src/ext/reflection
Arnaud Le Blanc c310be09ed
Fix setRawValueWithoutLazyInitialization() and skipLazyInitialization() on initialized proxy
Normally, accesses to properties marked as lazy trigger the object's
initialization, or forward to a real instance if the object is an initialized
proxy.

The purpose of ReflectionProperty::setRawValueWithoutLazyInitialization() and
ReflectionProperty::skipLazyInitialization() is to bypass auto-initialization,
so that some properties can be initialized without triggering initialization.

However, when the object is an initialized proxy, these methods would
unexpectedly update the proxy.

Here I make sure that these methods have an effect on the real instance, when
the object is an initialized proxy.

Fixes GH-16344
2024-11-26 14:04:58 +01:00
..
tests Fix the name of the initializer parameter of ReflectionClass::resetAsLazyGhost() 2024-11-12 18:51:33 +01:00
config.m4 Autotools: Normalize and quote all PHP_NEW_EXTENSION arguments (#15144) 2024-07-29 00:14:59 +02:00
config.w32 Remove HAVE_* for always available extensions 2019-04-14 11:44:12 -03:00
CREDITS
php_reflection.c Fix setRawValueWithoutLazyInitialization() and skipLazyInitialization() on initialized proxy 2024-11-26 14:04:58 +01:00
php_reflection.h Lazy objects 2024-08-30 17:30:03 +02:00
php_reflection.stub.php Fix the name of the initializer parameter of ReflectionClass::resetAsLazyGhost() 2024-11-12 18:51:33 +01:00
php_reflection_arginfo.h Fix the name of the initializer parameter of ReflectionClass::resetAsLazyGhost() 2024-11-12 18:51:33 +01:00