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
FixGH-22878: Use-after-free of callable via autoloader
Validating an array or string callable runs user code before its borrowed
method name and object are used: a string class name can trigger an
autoloader, and a compound "Class::method" name emits an E_DEPRECATED that
reaches a user error handler. Either can free or mutate the callable,
leaving the method string and $this dangling. Copy the method string
before the reentrant lookup, and hold the callable array across
INIT_USER_CALL's validation and frame build so the object survives to the
call. This also covers call_user_func_array(), $cb(), and referenced or
reference-wrapped array members.
FixesGH-22878
0 commit comments