Commit c621cbe27ff for php.net

commit c621cbe27ffe59ed98228724d674dcadcf7f6e8d
Merge: 9181736c39e be4b987cb3f
Author: Weilin Du <weilindu@php.net>
Date:   Tue Aug 18 02:42:56 2026 +0800

    Merge branch 'PHP-8.5'

    * PHP-8.5:
      Fix IntlGregorianCalendar double-free of an adopted TimeZone (#23321)

diff --cc NEWS
index 6550a7a9641,081461b539e..3db6bc520e8
--- a/NEWS
+++ b/NEWS
@@@ -22,24 -12,16 +22,26 @@@ PH
    . Fixed a crash in DOMXPath when a php:function callback receives a nodeset
      and a later callback returns a node from another document. (iliaal)

 +- PDO_PGSQL:
 +  . Fixed several lazy fetch (PDO::ATTR_PREFETCH => 0) defects: an infinite
 +    loop when cleaning up a fetch left in a COPY, a use-after-free when a
 +    statement with emulated or disabled prepares is destroyed, a connection
 +    left busy for the next fetch, and rows delivered from a result another
 +    statement took over. (KentarouTakeda)
 +
  - Intl:
 +  . Fixed grapheme_strrev() treating UBRK_DONE as a byte index and leaving
 +    the result without a terminating NUL. (iliaal)
+   . Fixed a double-free when IntlGregorianCalendar construction fails after
+     the ICU constructor adopts the TimeZone. (iliaal)

 -- Opcache:
 -  . Fixed opcache.protect_memory race under ZTS. (realFlowControl)
 +- Phar:
 +  . Fixed Phar archives being automatically detected when ".phar" only occurs
 +    in a directory name or is not a filename extension in an included file's
 +    path. (Weilin Du)

  - Readline:
 -  . Fixed the interactive shell not waiting for the pager process to exit.
 -    (Weilin Du)
 +  . Fixed class constant completion in the interactive shell. (Weilin Du)

  - Zip:
    . Fixed bug GH-17787 (ZipArchive stream stops reading early when the archive