[php-src] PR #23800: ext/session: Close the save handler when create_sid() fails

From: Date: Sun, 20 Sep 2026 16:13:26 +0000
Subject: [php-src] PR #23800: ext/session: Close the save handler when create_sid() fails
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38638@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23800 Author: iliaal php_session_regenerate_id() opens the save handler with s_open() and then throws when s_create_sid() returns no id, leaving mod_data open until request shutdown and double-opening it on the next session start. The collision-retry failure path a few lines up in the same function already closes the handler; this does the same on the null-id path.

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