summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2021-01-02 12:18:46 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2021-01-03 16:12:10 +0100
commite470f9b389313f2c966a87445c8e776c1897f532 (patch)
treeabc8a9463f75d90c8cae82f66153d55a68a841e0 /ext/zip/php_zip.c
parentcae0bcbab53aa1011e1e54b368a1394b9a2066b7 (diff)
downloadphp-git-e470f9b389313f2c966a87445c8e776c1897f532.tar.gz
ZipArchive methods do not return NULL
Closes GH-6563.
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c4
1 files changed, 2 insertions, 2 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);