mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
28edfe68a3
commit
c6b9dbcba6
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue