[php-src] PR #25805: ext/session: Fix GH-25705: session_reset() destroys $_SESSION while PS(http_session_vars) still points to it

From: Date: Thu, 26 Nov 2026 21:26:47 +0000
Subject: [php-src] PR #25805: ext/session: Fix GH-25705: session_reset() destroys $_SESSION while PS(http_session_vars) still points to it
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41079@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25805 Author: Roman3349 php_session_track_init() released the old session array before installing the new one, so destructors of its values ran against the array being destroyed. Install the new array first and release the old one afterwards. Do the same in php_rshutdown_session_globals(), the php_serialize decoder and session_unset(), and fail the initialization when a destructor closed the session. Fixes GH-25705

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