mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
54a3b76dae
commit
644df9d8bc
1 changed files with 6 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue