Skip to content

Conversation

remicollet
Copy link
Member

@remicollet remicollet commented Aug 12, 2021

Could apply in 7.4+

Previously, php_stream_zip_open reopen the same archive, bad for perf, and also explain why password is lost.

@remicollet remicollet added the Bug label Aug 12, 2021
@remicollet
Copy link
Member Author

Also prepared for pecl ext, https://github.com/pierrejoye/php_zip/tree/issue-80833

@remicollet
Copy link
Member Author

Notice, if the ZipArchive is closed, then the open streams become unusable, but this is properly detected by the library:

Warning: stream_get_contents(): Zip stream error: Containing zip archive was closed in ...

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you! That looks much cleaner than my PR.

@remicollet
Copy link
Member Author

Squasehd and merged as a6ffd8d (in 8.0+)
Also fde24e4 (bump zip version to 1.19.4)

@remicollet remicollet closed this Sep 1, 2021
@remicollet remicollet deleted the issue-80833 branch September 1, 2021 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants