mirror of
https://github.com/php/php-src.git
synced 2025-08-17 06:28:50 +02:00
![]() `new Reflectionproperty($scope, $propName)` keeps a reference to the zend_property_info of $propName declared in $scope. In getRawValue() and related methods, we use this reference to check whether the property is hooked. Calling `new ReflectionProperty($scope, $propName)->getRawValue($object)` is equivalent to the expression $object->$propName from scope $scope (except that it bypasses hooks), and thus may access an overridden property (unless the original is private). This property may have hooks and different flags. Here I fetch the effective property info before checking for hooks and property flags. Fixes GH-17713 Closes GH-17714 |
||
---|---|---|
.. | ||
basics.phpt | ||
bug_001.phpt | ||
gh15718.phpt | ||
gh17713.phpt | ||
hook_guard.phpt | ||
ReflectionClass_getMethods.phpt | ||
ReflectionProperty_getHook_inheritance.phpt | ||
ReflectionProperty_getHooks.phpt | ||
ReflectionProperty_getSetRawValue.phpt | ||
ReflectionProperty_getSetValue.phpt | ||
ReflectionProperty_isInitialized.phpt |