Commit 93adc39ea8e for php.net

commit 93adc39ea8ed0f185f9a2895f49b29d7ee0b8741
Merge: 8149fba295d daeeed81c3b
Author: Weilin Du <weilindu@php.net>
Date:   Fri Aug 14 04:12:50 2026 +0800

    Merge branch 'PHP-8.5'

    * PHP-8.5:
      Fix GH-17787: ZipArchive stream truncates when the archive is freed (#22555)

diff --cc NEWS
index d3b9b62ce8b,6eebf9d3d37..0265ad77809
--- a/NEWS
+++ b/NEWS
@@@ -5,53 -5,25 +5,57 @@@ PH
  - Core:
    . Fixed bug GH-15375 (Nested "yield from" skips items after a valid() or
      next() call on the inner generator). (iliaal)
 +  . Fixed GH-10497 (Allow direct mutation of objects stored in constants or
 +    class constants via OBJ->prop = $val). (Khaled Alam)
 +  . Reverted GH-22833, which attempted to fix bug GH-18985. (ilutov)
 +
 +- 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)

  - 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
+     is freed while the stream is still open). (Eyüp Can Akman)
+
 -
 -27 Aug 2026, PHP 8.5.10
 +13 Aug 2026, PHP 8.6.0beta1

  - Core:
 -  . Fixed bug GH-22782 (Const expr FCC crashes under preloading). (Arnaud)
 -  . Fixed bug GH-23088 (Stack overflow when comparing deeply nested arrays).
 -    (Lazizbek Ergashev)
 +  . Deprecated "namespace" as a class constant name. (NickSdot)
 +  . Changed run-tests.php to run in parallel by default, using up to 10
 +    automatically detected workers. Pass -j1 for sequential execution.
 +    (NickSdot)
 +  . Allowed readonly properties to declare default values. (NickSdot)
 +  . Changed run-tests.php to run test subprocesses without a shell where
 +    possible. (NickSdot)
 +  . Fixed GH-23083 (SEGV build_trace_args in zend_exceptions.c with
 +    -d error_include_args=On). (David Carlier)
 +  . Fixed GH-23121 (is_callable() wrongly accepts objects with no get_closure
 +    handler). (David Carlier)
 +  . Passing a 3rd argument to define() is now deprecated. (Girgias)
 +  . Naming a function readonly is now deprecated. (Girgias)
 +  . Added stateless closure cache. (ilutov)
 +
 +- BZ2:
 +  . Passing an object for the Bzip2 {de}compression stream filter is now
 +    deprecated. Use get_object_vars() on the object instead. (Girgias)
 +
 +- Curl:
 +  . Improved cURL option validation errors to include the option name.
 +    (Sjoerd Langkemper)
 +  . Raise a value error when the callback registered with CURLOPT_READFUNCTION
 +    returns an unexpected long. (Sjoerd Langkemper)
 +  . Fix bug GH-16513 (curl: exceptions in callbacks do not abort the request).
 +    (Sjoerd Langkemper)

  - Date:
 -  . Fixed leak on double DatePeriod::__construct() call. (ilutov)
 +  . Update timelib to 2026.02. (Derick, timwolla)
 +  . Added Time\Duration. (timwolla, Derick)

  - DOM:
    . Fixed bug GH-23116 (Stack overflow when normalizing a deeply nested