Commit 636c1dd985f for php.net

commit 636c1dd985fe6dfdf83d7d329932811264bdd839
Merge: 8bb923eb299 a465822c3da
Author: Ilia Alshanetsky <ilia@ilia.ws>
Date:   Wed Aug 12 06:34:06 2026 -0400

    Merge branch 'PHP-8.5'

    * PHP-8.5:
      Fix GH-15375: nested "yield from" skips items after valid()/next()

diff --cc NEWS
index d9f1281d594,ab010e5a0ec..e569af4b6a0
--- a/NEWS
+++ b/NEWS
@@@ -1,47 -1,25 +1,51 @@@
  PHP                                                                        NEWS
  |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 -?? ??? ????, PHP 8.5.11
 +?? ??? ????, PHP 8.6.0beta2

+ - Core:
+   . Fixed bug GH-15375 (Nested "yield from" skips items after a valid() or
+     next() call on the inner generator). (iliaal)
+
 -- Readline:
 -  . Fixed the interactive shell not waiting for the pager process to exit.
 -    (Weilin Du)
 -
 +- 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)

 -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