[GIT-PULLS] [php-src] PR #23249: Fix leak when persistent PDO liveness check fails

[email protected] (iliaal)
Newsgroups php.git-pulls
Message-ID <[email protected]>
Pull Request: https://github.com/php/php-src/pull/23249
Author: iliaal

zend_list_close() only runs PDO's regular resource dtor, which is NULL. A dead cached persistent handle with no other live PDO object was dropped from the cache and never passed to php_pdo_pdbh_dtor. Delete the persistent_list entry so the persistent dtor runs. If another PDO object still holds the handle, the cache entry is only evicted.
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.