svn: /phpdoc/en/trunk/reference/zip/ziparchive/ addfile.xml
| From: | Adam Harvey | Date: | Thu, 22 May 2014 21:46:44 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/zip/ziparchive/ addfile.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-12487@lists.php.net to get a copy of this message | ||
aharvey Thu, 22 May 2014 21:46:44 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=333598
Log:
Fix doc bug #67313 (Note by ZipArchive::addFile is confusing).
Bug: https://bugs.php.net/67313 (Open) Note by
ZipArchive::addFile is confusing
Changed paths:
U phpdoc/en/trunk/reference/zip/ziparchive/addfile.xml
Modified: phpdoc/en/trunk/reference/zip/ziparchive/addfile.xml
===================================================================
--- phpdoc/en/trunk/reference/zip/ziparchive/addfile.xml 2014-05-22 21:28:59 UTC (rev 333597)
+++ phpdoc/en/trunk/reference/zip/ziparchive/addfile.xml 2014-05-22 21:46:44 UTC (rev 333598)
@@ -93,9 +93,12 @@
&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>