reference/zip/ziparchive/replacefile.xml
d7f5a20dbd199ad69cdb1ff713a3d89719252a5c
...
...
@@ -12,7 +12,7 @@
12
12
<methodparam><type>string</type><parameter>filepath</parameter></methodparam>
13
13
<methodparam><type>int</type><parameter>index</parameter></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>0</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>
...
...
@@ -99,6 +102,12 @@
99
102
<constant>ZipArchive::FL_OPEN_FILE_NOW</constant> was added.
100
103
</entry>
101
104
</row>
105
+
<row>
106
+
<entry>8.3.0 / 1.22.2</entry>
107
+
<entry>
108
+
<constant>ZipArchive::LENGTH_TO_END</constant> and <constant>ZipArchive::LENGTH_UNCHECKED</constant> were added.
109
+
</entry>
110
+
</row>
102
111
</tbody>
103
112
</tgroup>
104
113
</informaltable>
105
114