[php-src] PR #21093: Fix GH-20504: Real instance of lazy proxy may lack magic methods existing in proxy
| From: | arnaud-lb | Date: | Fri, 30 Jan 2026 15:30:50 +0000 |
| Subject: | [php-src] PR #21093: Fix GH-20504: Real instance of lazy proxy may lack magic methods existing in proxy | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34734@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21093
Author: arnaud-lb
In GH-18039 we guard lazy object properties before forwarding access to the real instance. When the
real instance lacks magic methods, the assertion
zobj->ce->ce_flags &
ZEND_ACC_USE_GUARDS fails in zend_get_property_guard().
Fix by checking that the real instance uses guards.
Fixes GH-20504.