1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 15:52:15 +01:00

add ZipArchive::FL_OPEN_FILE_NOW

This commit is contained in:
Remi Collet
2023-06-29 15:19:16 +02:00
parent dbbbec20d0
commit 286228490f
4 changed files with 54 additions and 3 deletions

View File

@@ -268,6 +268,18 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="ziparchive.constants.fl-open-file-now">
<term>
<constant>ZipArchive::FL_OPEN_FILE_NOW</constant>
</term>
<listitem>
<simpara>
Open the file when added instead of waiting for archive to be closed.
Be aware of file descriptors consumption.
Available as of PHP 8.3.0 and PECL zip 1.22.1.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="ziparchive.constants.cm-default">
<term>

View File

@@ -64,7 +64,8 @@
<constant>ZipArchive::FL_OVERWRITE</constant>,
<constant>ZipArchive::FL_ENC_GUESS</constant>,
<constant>ZipArchive::FL_ENC_UTF_8</constant>,
<constant>ZipArchive::FL_ENC_CP437</constant>.
<constant>ZipArchive::FL_ENC_CP437</constant>,
<constant>ZipArchive::FL_OPEN_FILE_NOW</constant>.
The behaviour of these constants is described on the
<link linkend="zip.constants">ZIP constants</link> page.
</para>
@@ -99,6 +100,12 @@
<parameter>flags</parameter> was added.
</entry>
</row>
<row>
<entry>8.3.0 / 1.22.1</entry>
<entry>
<constant>ZipArchive::FL_OPEN_FILE_NOW</constant> was added.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>

View File

@@ -81,7 +81,8 @@
<constant>ZipArchive::FL_OVERWRITE</constant>,
<constant>ZipArchive::FL_ENC_GUESS</constant>,
<constant>ZipArchive::FL_ENC_UTF_8</constant>,
<constant>ZipArchive::FL_ENC_CP437</constant>.
<constant>ZipArchive::FL_ENC_CP437</constant>,
<constant>ZipArchive::FL_OPEN_FILE_NOW</constant>.
The behaviour of these constants is described on the
<link linkend="zip.constants">ZIP constants</link> page.
</para>
@@ -160,6 +161,12 @@
<parameter>options</parameter> were added.
</entry>
</row>
<row>
<entry>8.3.0 / 1.22.1</entry>
<entry>
<constant>ZipArchive::FL_OPEN_FILE_NOW</constant> was added.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>

View File

@@ -63,7 +63,8 @@
Bitmask consisting of
<constant>ZipArchive::FL_ENC_GUESS</constant>,
<constant>ZipArchive::FL_ENC_UTF_8</constant>,
<constant>ZipArchive::FL_ENC_CP437</constant>.
<constant>ZipArchive::FL_ENC_CP437</constant>,
<constant>ZipArchive::FL_OPEN_FILE_NOW</constant>.
The behaviour of these constants is described on the
<link linkend="zip.constants">ZIP constants</link> page.
</para>
@@ -80,6 +81,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.3.0 / 1.22.1</entry>
<entry>
<constant>ZipArchive::FL_OPEN_FILE_NOW</constant> was added.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>