Skip to content

[pull] master from php:master - #1250

Merged
pull[bot] merged 3 commits into
turkdevops:masterfrom
php:master
Sep 7, 2026
Merged

[pull] master from php:master#1250
pull[bot] merged 3 commits into
turkdevops:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Sep 7, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

lazerg and others added 3 commits September 7, 2026 13:28
…index (#23577)

`array_keys()` reused the input array when it was empty. For an array
that was previously populated, this preserved the next free index and
caused later appends to start at a non-zero key, even though
`array_keys()` returns a list.

Return a fresh empty array, matching `array_values()`, and cover both
previously populated and fresh empty arrays across all argument forms.

Closes #23577
* PHP-8.4:
  Fix GH-23576: array_keys() on an empty array returns a non-zero next index (#23577)
* PHP-8.5:
  Fix GH-23576: array_keys() on an empty array returns a non-zero next index (#23577)
@pull pull Bot locked and limited conversation to collaborators Sep 7, 2026
@pull pull Bot added the ⤵️ pull label Sep 7, 2026
@pull
pull Bot merged commit 8b0088a into turkdevops:master Sep 7, 2026
0 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants