com php-src: Don't explicitly set return value on ZPP failure: ext/bz2/bz2.c
| From: | Christoph Michael Becker | Date: | Fri, 16 Aug 2019 15:54:11 +0000 |
| Subject: | com php-src: Don't explicitly set return value on ZPP failure: ext/bz2/bz2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-107947@lists.php.net to get a copy of this message | ||
Commit: 2d1f371871ef5afee6b2d683c760b25c8b147c66
Author: Christoph M. Becker <cmbecker69@gmx.de> Fri, 16 Aug 2019 17:46:46 +0200
Parents: 1f49b1df507787833cef12b63c2fcd022453c19e
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2d1f371871ef5afee6b2d683c760b25c8b147c66
Log:
Don't explicitly set return value on ZPP failure
Failing ZPP throws as of PHP 8.0.0, so explicitly setting a return
value is useless, and also slightly confusing.
Changed paths:
M ext/bz2/bz2.c
Diff:
diff --git a/ext/bz2/bz2.c b/ext/bz2/bz2.c
index bf706f6..b4079df 100644
--- a/ext/bz2/bz2.c
+++ b/ext/bz2/bz2.c
@@ -335,7 +335,7 @@ static PHP_FUNCTION(bzread)
zend_string *data;
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &bz, &len)) {
- RETURN_FALSE;
+ return;
}
php_stream_from_zval(stream, bz);
@@ -535,7 +535,7 @@ static PHP_FUNCTION(bzdecompress)
bz_stream bzs;
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &source,
&source_len, &small)) {
- RETURN_FALSE;
+ return;
}
bzs.bzalloc = NULL;