Commit 8b0088a41de for php.net
commit 8b0088a41de2ef04640d9cb9ecbe77e505a046bc
Merge: 810a9e58dc0 752c9ff6e90
Author: Weilin Du <weilindu@php.net>
Date: Mon Sep 7 13:29:26 2026 +0800
Merge branch 'PHP-8.5'
* PHP-8.5:
Fix GH-23576: array_keys() on an empty array returns a non-zero next index (#23577)
diff --cc NEWS
index 98c8d3b3106,34659957129..5c6f6e8db9e
--- a/NEWS
+++ b/NEWS
@@@ -87,10 -98,12 +87,12 @@@ PH
. Fixed an out-of-bounds read when following a redirect response with an
empty Location header. (iliaal)
. Fixed read buffer compaction in php_stream_filter_flush(). (crystarm)
- . Fixed bug GH-22410 (Incorrect float behavior with large numbers).
- (arshidkv12)
+ . Io\Poll\Context::wait() now rejects a $maxEvents value greater than
+ INT_MAX instead of truncating it. (marc-mabe)
. Fixed GH-23338 (fsockopen()/pfsockopen() ValueError reported wrong
argument number for $timeout). (lacatoire)
+ . Fixed bug GH-23576 (Next index for array returned from array_keys() is
+ wrong). (Lazizbek Ergashev)
- SimpleXML:
. Fixed writing to a dimension of the object returned by attributes() not