[php-src] PR #23653: [Session] Truncate session file after successful write
| From: | iliaal | Date: | Thu, 10 Sep 2026 22:13:45 +0000 |
| Subject: | [php-src] PR #23653: [Session] Truncate session file after successful write | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38428@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23653
Author: iliaal
The files session save handler truncated the session file to zero before writing, so a short or
failed write returned failure with the previous data already gone. It now writes first and truncates
to the new length only after the full buffer lands.