Skip to content

Commit 2d1f371

Browse files
committed
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.
1 parent 1f49b1d commit 2d1f371

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/bz2/bz2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ static PHP_FUNCTION(bzread)
335335
zend_string *data;
336336

337337
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &bz, &len)) {
338-
RETURN_FALSE;
338+
return;
339339
}
340340

341341
php_stream_from_zval(stream, bz);
@@ -535,7 +535,7 @@ static PHP_FUNCTION(bzdecompress)
535535
bz_stream bzs;
536536

537537
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &source, &source_len, &small)) {
538-
RETURN_FALSE;
538+
return;
539539
}
540540

541541
bzs.bzalloc = NULL;

0 commit comments

Comments
 (0)