Commit 1fa14b029a7 for php

commit 1fa14b029a7de2076481b62890c06a4f1fd940ba
Merge: d4265ca89ce 0f6efebf96e
Author: Ilia Alshanetsky <ilia@ilia.ws>
Date:   Thu Oct 15 13:47:09 2026 -0400

    Merge branch 'PHP-8.5' into PHP-8.6

    * PHP-8.5:
      ext/session: Truncate session file after successful write

diff --cc NEWS
index d746ac9130c,b70c875610e..86b33beee17
--- a/NEWS
+++ b/NEWS
@@@ -68,12 -68,10 +68,14 @@@ PH
      contains a non-ASCII byte. (Weilin Du)

  - Session:
 +  . Fixed session_write_close() keeping the save handler open when the
 +    session data cannot be encoded. (Ilia Alshanetsky)
+   . Fixed session data loss in the files save handler when writing the session
+     file fails after it was already truncated. (Ilia Alshanetsky)

  - Standard:
 +  . Fixed chown() and lchown() failing to resolve user names in ZTS builds
 +    when getpwnam_r() needs a larger buffer. (Ilia Alshanetsky)
    . Fixed password_get_info() and password_needs_rehash() accepting malformed
      bcrypt costs. (Ilia Alshanetsky)