summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2021-01-03 16:12:24 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2021-01-03 16:12:24 +0100
commit533af1eb14dbeb10c83f291b07da62b70d0df8ae (patch)
treecf103c09d1d3ecf55823d4dd88c8add75d78044a
parentdfb9e03336fed7c4c07fb1a30a8be25cfbf546e4 (diff)
parente470f9b389313f2c966a87445c8e776c1897f532 (diff)
downloadphp-git-533af1eb14dbeb10c83f291b07da62b70d0df8ae.tar.gz
Merge branch 'PHP-8.0'
* PHP-8.0: ZipArchive methods do not return NULL
-rw-r--r--ext/zip/php_zip.c4
-rw-r--r--ext/zip/php_zip.stub.php8
-rw-r--r--ext/zip/php_zip_arginfo.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index 92272d270f..6875850687 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -2449,7 +2449,7 @@ PHP_METHOD(ZipArchive, setMtimeName)
if (zend_parse_parameters(ZEND_NUM_ARGS(), "sl|l",
&name, &name_len, &mtime, &flags) == FAILURE) {
- return;
+ RETURN_THROWS();
}
ZIP_FROM_OBJECT(intern, this);
@@ -2483,7 +2483,7 @@ PHP_METHOD(ZipArchive, setMtimeIndex)
if (zend_parse_parameters(ZEND_NUM_ARGS(), "ll|l",
&index, &mtime, &flags) == FAILURE) {
- return;
+ RETURN_THROWS();
}
ZIP_FROM_OBJECT(intern, this);
diff --git a/ext/zip/php_zip.stub.php b/ext/zip/php_zip.stub.php
index 9a276a05df..ddda62d6b0 100644
--- a/ext/zip/php_zip.stub.php
+++ b/ext/zip/php_zip.stub.php
@@ -111,17 +111,17 @@ class ZipArchive
/** @return string|false */
public function getArchiveComment(int $flags = 0) {}
- /** @return bool|null */
+ /** @return bool */
public function setCommentIndex(int $index, string $comment) {}
- /** @return bool|null */
+ /** @return bool */
public function setCommentName(string $name, string $comment) {}
#ifdef HAVE_SET_MTIME
- /** @return bool|null */
+ /** @return bool */
public function setMtimeIndex(int $index, int $timestamp, int $flags = 0) {}
- /** @return bool|null */
+ /** @return bool */
public function setMtimeName(string $name, int $timestamp, int $flags = 0) {}
#endif
diff --git a/ext/zip/php_zip_arginfo.h b/ext/zip/php_zip_arginfo.h
index a4167fa8ca..87212a4975 100644
--- a/ext/zip/php_zip_arginfo.h
+++ b/ext/zip/php_zip_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 4ca2b108e71924309abcdc1a0f86f5963a8516f3 */
+ * Stub hash: 8994595a1c86072629e051291e87cc5e1774eb7f */
ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_open, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)