From c6b9dbcba621922ec3d22470f847588f77486353 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Thu, 29 Oct 2020 18:32:31 +0000 Subject: [PATCH] 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 . git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351062 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/zip/functions/zip-open.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/zip/functions/zip-open.xml b/reference/zip/functions/zip-open.xml index a7066438ee..8f38c9b803 100644 --- a/reference/zip/functions/zip-open.xml +++ b/reference/zip/functions/zip-open.xml @@ -9,7 +9,7 @@ &reftitle.description; - resourcezip_open + resourceintfalsezip_open stringfilename @@ -36,8 +36,8 @@ Returns a resource handle for later use with zip_read and zip_close - or returns the number of error if filename does not - exist or in case of other error. + or returns either &false; or the number of error if filename + does not exist or in case of other error.