From e470f9b389313f2c966a87445c8e776c1897f532 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sat, 2 Jan 2021 12:18:46 +0100 Subject: ZipArchive methods do not return NULL Closes GH-6563. --- ext/zip/php_zip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/zip/php_zip.c') 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); -- cgit v1.2.1