Skip to content

Conversation

@arnaud-lb
Copy link
Member

@arnaud-lb arnaud-lb commented Jan 30, 2026

In GH-18039 we guard the underlying property before forwarding access to the real instance of a lazy proxy. 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.

@arnaud-lb arnaud-lb changed the base branch from master to PHP-8.4 January 30, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assertion failure in zend_get_property_guard when accessing properties on Reflection LazyProxy via isset()

1 participant