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
This commit is contained in:
Adam Harvey 2014-05-22 21:46:44 +00:00
parent 54a3b76dae
commit 644df9d8bc

View file

@ -93,9 +93,12 @@ if ($zip->open('test.zip') === TRUE) {
&reftitle.notes;
<note>
<para>
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 <classname>ZipArchive</classname> object
has been closed, either via <methodname>ZipArchive::close</methodname> or
the <classname>ZipArchive</classname> object being destroyed. This may
prevent you from being able to delete the file being added until after the
lock has been released.
</para>
</note>
</refsect1>