Skip to content

[Sync-EN] Document the ZipArchive deferred write behavior - #1765

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1661
Open

lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1661

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Syncs reference/zip/ziparchive/close.xml and reference/zip/ziparchive/open.xml with php/doc-en#5274.

  • ZipArchive::close(): adds the note that adding, removing and renaming entries happens in memory and reaches the disk only when close() is called, so file system errors such as permission denied or a missing directory surface at close time rather than when the modification methods are called.
  • ZipArchive::open(): adds the matching note for ZipArchive::CREATE, where the file is not written until close() is called, so file system errors are reported there and not by open().

EN-Revision bumped to 5cb356334f35b9ae452e3af47d2d9f0b1cd16b63 on both files.

Fixes: #1661

@lacatoire
lacatoire requested a review from a team as a code owner August 31, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sync EN] Document ZipArchive deferred write behavior

1 participant