Skip to content

ext/zip: ZipArchive::extractTo() ignores files given in a non-list ar… - #23647

Closed
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:zip_extractto_fix
Closed

ext/zip: ZipArchive::extractTo() ignores files given in a non-list ar…#23647
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:zip_extractto_fix

Conversation

@devnexen

Copy link
Copy Markdown
Member

…ray.

The array form walked the entries by synthetic 0..n-1 indices, so a files array with non-sequential keys (as returned by array_filter() and similar) or an integer element extracted nothing while still returning true. It now iterates the array values, honouring every entry regardless of its keys.

…ray.

The array form walked the entries by synthetic 0..n-1 indices, so a files
array with non-sequential keys (as returned by array_filter() and similar)
or an integer element extracted nothing while still returning true. It now
iterates the array values, honouring every entry regardless of its keys.
@devnexen
devnexen marked this pull request as ready for review September 10, 2026 22:23

@LamentXU123 LamentXU123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

@devnexen devnexen closed this in 214ed7e Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants