add flags in options of ZipArchive::addGlob (and addPattern)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349283 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Remi Collet 2020-03-02 16:29:25 +00:00
parent 9cbc3cf859
commit 298c5edd24

View file

@ -73,6 +73,20 @@
&true; to use the file name only and add to the root of the archive.
</para>
</listitem>
<listitem>
<para>
<literal>"flags"</literal>
</para>
<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>
</itemizedlist>
</para>
</listitem>
@ -87,6 +101,30 @@
</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>
<literal>"flags"</literal> in <parameter>options</parameter> was added.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example xml:id="ziparchive.addglob.example.basic">