Skip to content

Document ZipArchive deferred write behavior - #5274

Merged
lacatoire merged 1 commit into
php:masterfrom
lacatoire:fix/zip-deferred-write-note
Aug 20, 2026
Merged

lacatoire merged 1 commit into
php:masterfrom
lacatoire:fix/zip-deferred-write-note

Conversation

@lacatoire

@lacatoire lacatoire commented Feb 5, 2026 •

Copy link
Copy Markdown
Member

Fixes #3717

Document that ZipArchive writes are deferred until close() is called (libzip behavior).

@lacatoire lacatoire closed this Mar 2, 2026
@lacatoire lacatoire reopened this Jun 8, 2026
@lacatoire
lacatoire force-pushed the fix/zip-deferred-write-note branch from 1d28844 to ac095f9 Compare June 9, 2026 08:53
@lacatoire
lacatoire force-pushed the fix/zip-deferred-write-note branch from ac095f9 to 016dead Compare June 23, 2026 14:07
@lacatoire
lacatoire merged commit 5cb3563 into php:master Aug 20, 2026
2 checks passed
@lacatoire
lacatoire deleted the fix/zip-deferred-write-note branch September 10, 2026 14:03
KentarouTakeda added a commit to KentarouTakeda/php-doc-ja that referenced this pull request Sep 27, 2026
zip の 2 ファイルを原文の変更に追従しました。これで zip モジュールの未訳・要更新はなくなります。

- `ZipArchive::open()` と `ZipArchive::close()` に、アーカイブへの変更は `ZipArchive::close()` を呼ぶまでディスクに書き込まれず、ファイルシステム関連のエラーもその時点で報告される、という注記が追加されました(php/doc-en@5cb3563、php/doc-en#5274)

## 対象ファイル

reference/zip/ (2) — ziparchive/close.xml, ziparchive/open.xml
KentarouTakeda added a commit to KentarouTakeda/php-doc-ja that referenced this pull request Sep 27, 2026
zip の 2 ファイルを原文の変更に追従しました。これで zip モジュールの未訳・要更新はなくなります。

- `ZipArchive::open()` と `ZipArchive::close()` に、アーカイブへの変更は `ZipArchive::close()` を呼ぶまでディスクに書き込まれず、ファイルシステム関連のエラーもその時点で報告される、という注記が追加されました(php/doc-en@5cb3563、php/doc-en#5274)

## 対象ファイル

reference/zip/ (2) — ziparchive/close.xml, ziparchive/open.xml
KentarouTakeda added a commit to php/doc-ja that referenced this pull request Sep 27, 2026
zip の 2 ファイルを原文の変更に追従しました。これで zip モジュールの未訳・要更新はなくなります。

- `ZipArchive::open()` と `ZipArchive::close()` に、アーカイブへの変更は `ZipArchive::close()` を呼ぶまでディスクに書き込まれず、ファイルシステム関連のエラーもその時点で報告される、という注記が追加されました(php/doc-en@5cb3563、php/doc-en#5274)

## 対象ファイル

reference/zip/ (2) — ziparchive/close.xml, ziparchive/open.xml
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.

zip extension only acts when closing the archive

2 participants