[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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.