[php-src] PR #22027: Fix GH-22023 crash during ZTS thread startup

From: Date: Tue, 12 May 2026 19:53:39 +0000
Subject: [php-src] PR #22027: Fix GH-22023 crash during ZTS thread startup
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36109@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22027 Author: shivammathur Fixes GH-22023 by initializing last_fatal_error_backtrace in executor_globals_ctor(). On Apache + ZTS, zend_new_thread_end_handler() may refresh INI caches before init_executor() runs for the new thread. If session.use_trans_sid=1 triggers its startup deprecation in that window, zend_error_zstr_at() can destroy EG(last_fatal_error_backtrace) before it has been initialized, causing an access violation and Apache child restart. This change makes the per-thread executor globals safe for that early warning path.

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