[php-src] PR #15822: Fix ReflectionProperty::isInitialized() for hooked props
| From: | iluuu1994 | Date: | Tue, 10 Sep 2024 10:34:24 +0000 |
| Subject: | [php-src] PR #15822: Fix ReflectionProperty::isInitialized() for hooked props | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28516@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15822
Author: iluuu1994
In zend_std_has_property with ZEND_PROPERTY_EXISTS, we'd just return true when no get hook was
present. However, this function is supposed to return false for uninitialized properties.
PROPERTY_EXISTS is somewhat of a misnomer. Virtual properties continue to always return true, given
there's no backing value to check.
Fixes GH-15694