mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
add flags parameter to ZipArchive::addFile
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349282 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
09bf6f612b
commit
9cbc3cf859
1 changed files with 41 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
<methodparam choice="opt"><type>string</type><parameter>localname</parameter><initializer>&null;</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>start</parameter><initializer>0</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>0</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>ZipArchive::FL_OVERWRITE</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Adds a file to a ZIP archive from a given path.
|
||||
|
@ -55,15 +56,55 @@
|
|||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>flags</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Bitmask consisting of
|
||||
<constant>ZipArchive::FL_OVERWRITE</constant>,
|
||||
<constant>ZipArchive::FL_ENC_GUESS</constant>,
|
||||
<constant>ZipArchive::FL_ENC_UTF_8</constant>,
|
||||
<constant>ZipArchive::FL_ENC_CP437</constant>.
|
||||
The behaviour of these constants is described on the
|
||||
<link linkend="zip.constants">ZIP constants</link> page.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>8.0.0 / 1.18.0</entry>
|
||||
<entry>
|
||||
<parameter>flags</parameter> was added.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue