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.