Fix the return value of \zip_open()

zip_open() can also return false [0].

[0] https://github.com/php/php-src/blob/php-7.4.4/ext/zip/php_zip.c#L1160

Based on a patch contributed by Thomas Gerbet <thomas.gerbet@enalean.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351062 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-10-29 18:32:31 +00:00
parent 28edfe68a3
commit c6b9dbcba6

View file

@ -9,7 +9,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>resource</type><methodname>zip_open</methodname>
<type class="union"><type>resource</type><type>int</type><type>false</type></type><methodname>zip_open</methodname>
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
</methodsynopsis>
<para>
@ -36,8 +36,8 @@
<para>
Returns a resource handle for later use with
<function>zip_read</function> and <function>zip_close</function>
or returns the number of error if <parameter>filename</parameter> does not
exist or in case of other error.
or returns either &false; or the number of error if <parameter>filename</parameter>
does not exist or in case of other error.
</para>
</refsect1>