[php-src] PR #22151: Fix GH-22060 and GH-22122: pin object/closure in callback dispatch

From: Date: Tue, 26 May 2026 01:28:08 +0000
Subject: [php-src] PR #22151: Fix GH-22060 and GH-22122: pin object/closure in callback dispatch
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36238@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22151 Author: iliaal GH-22060 + GH-22122 fix for PHP-8.4. Same UAF in two callback-dispatch sites: zend_call_known_fcc and spl_perform_autoload forward the borrowed object/closure into the call frame without addref. 8.4 and 8.5 both need the pair, since SPL autoload still uses zend_call_known_function direct. Master only needs the zend_API change because Zend/zend_autoload.c routes through zend_call_known_fcc.

« previous php.git-pulls (#36238) next »