You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Php 8.4 - ReflectionProperty->getHooks() on dynamic property results in segmentation fault #15718
Its not just with #[\AllowDynamicProperties], but also when using stdClass, or even classes that don't allow dynamic and thus issue a warning while still being used.
Its also not just getHooks(), but also getHook(), with this issue
Activity
ndossche commentedon Sep 3, 2024
Intuitively, I suspect that ref->prop is NULL, which also means that getHook has the same problem.
But I'm on mobile rn and can't check.
DanielEScherzer commentedon Sep 3, 2024
Its not just with
#[\AllowDynamicProperties], but also when usingstdClass, or even classes that don't allow dynamic and thus issue a warning while still being used.Its also not just
getHooks(), but alsogetHook(), with this issueDanielEScherzer commentedon Sep 3, 2024
PR at #15721, I don't seem to have the rights to link it as closing this issue
Fix phpGH-15718: ReflectionProperty::get{Hook,Hooks}(): handle dynami…
iluuu1994 commentedon Sep 3, 2024
Thanks @bkdotcom and @DanielEScherzer!
ReflectionProperty::get{Hook,Hooks}(): handle dynamic properties
bkdotcom commentedon Sep 4, 2024
Early adoption for the win!