[GIT-PULLS] [php-src] PR #23492: Fix weakref unregister assertion after stack overflow
[email protected] (2akouwu)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <[email protected]> |
Pull Request: https://github.com/php/php-src/pull/23492 Author: 2akouwu Fixes #22650. Handle the narrow case where a WeakReference is being unregistered after its referent has already disappeared from EG(weakrefs) during stack-overflow unwinding. Clear the stale IS_OBJ_WEAKLY_REFERENCED flag and return instead of asserting on a registry entry that is no longer present. Normal registered weakref invariants remain unchanged.