You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Next index for array returned from array_keys() is wrong #23576
This only happens when array_keys() is provided with an empty array that previously contained some elements.
PHP Version
PHP 8.4.25 (cli) (built: Aug 28 2026 07:36:03) (NTS)
Copyright (c) The PHP Group
Built by Debian
Zend Engine v4.4.25, Copyright (c) Zend Technologies
with Zend OPcache v8.4.25, Copyright (c), by Zend Technologies
changed the title [-]Next index for array returned from `array_keys()` ist wrong[/-][+]Next index for array returned from `array_keys()` is wrong[/+]on Sep 4, 2026
Activity
[-]Next index for array returned from `array_keys()` ist wrong[/-][+]Next index for array returned from `array_keys()` is wrong[/+]Add empty array cases to the phpGH-23576 test
Fix phpGH-23576: array_keys() on an empty array returns a non-zero ne…
Merge branch 'PHP-8.4' into PHP-8.5
Merge branch 'PHP-8.5'