reference/zip/ziparchive/addfile.xml
d7f5a20dbd199ad69cdb1ff713a3d89719252a5c
...
...
@@ -12,7 +12,7 @@
12
12
<methodparam><type>string</type><parameter>filepath</parameter></methodparam>
13
13
<methodparam choice="opt"><type>string</type><parameter>entryname</parameter><initializer>""</initializer></methodparam>
14
14
<methodparam choice="opt"><type>int</type><parameter>start</parameter><initializer>0</initializer></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>0</initializer></methodparam>
15
+
<methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>ZipArchive::LENGTH_TO_END</initializer></methodparam>
16
16
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>ZipArchive::FL_OVERWRITE</initializer></methodparam>
17
17
</methodsynopsis>
18
18
<para>
...
...
@@ -52,7 +52,10 @@
52
52
<term><parameter>length</parameter></term>
53
53
<listitem>
54
54
<para>
55
-
For partial copy, length to be copied, if 0 or -1 the whole file (starting from <parameter>start</parameter>) is used.
55
+
For partial copy, length to be copied,
56
+
if <constant>ZipArchive::LENGTH_TO_END</constant> (0) the file size is used,
57
+
if <constant>ZipArchive::LENGTH_UNCHECKED</constant> the whole file is used
58
+
(starting from <parameter>start</parameter>).
56
59
</para>
57
60
</listitem>
58
61
</varlistentry>
...
...
@@ -106,6 +109,12 @@
106
109
<constant>ZipArchive::FL_OPEN_FILE_NOW</constant> was added.
107
110
</entry>
108
111
</row>
112
+
<row>
113
+
<entry>8.3.0 / 1.22.2</entry>
114
+
<entry>
115
+
<constant>ZipArchive::LENGTH_TO_END</constant> and <constant>ZipArchive::LENGTH_UNCHECKED</constant> were added.
116
+
</entry>
117
+
</row>
109
118
</tbody>
110
119
</tgroup>
111
120
</informaltable>
112
121