From 644df9d8bcd7b56846ac6a85e6ee41c8031b6c61 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Thu, 22 May 2014 21:46:44 +0000 Subject: [PATCH] Fix doc bug #67313 (Note by ZipArchive::addFile is confusing). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333598 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/zip/ziparchive/addfile.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/reference/zip/ziparchive/addfile.xml b/reference/zip/ziparchive/addfile.xml index c717dab549..c1bb0f7394 100644 --- a/reference/zip/ziparchive/addfile.xml +++ b/reference/zip/ziparchive/addfile.xml @@ -93,9 +93,12 @@ if ($zip->open('test.zip') === TRUE) { &reftitle.notes; - When a file is set to be added to the archive, PHP will attempt to lock - the file and it is only released once the ZIP operation is done. In short, - it means you can first delete an added file after the archive is closed. + When a file is set to be added to the archive, PHP will lock the file. The + lock is only released once the ZipArchive object + has been closed, either via ZipArchive::close or + the ZipArchive object being destroyed. This may + prevent you from being able to delete the file being added until after the + lock has been released.