Skip to content

Commit af5c637

Browse files
committed
Remove some unnecessary RETURN_FALSE uses
1 parent fff6445 commit af5c637

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ext/standard/user_filters.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,11 @@ PHP_FUNCTION(stream_bucket_make_writeable)
397397

398398
ZEND_PARSE_PARAMETERS_START(1, 1)
399399
Z_PARAM_RESOURCE(zbrigade)
400-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
400+
ZEND_PARSE_PARAMETERS_END();
401401

402402
if ((brigade = (php_stream_bucket_brigade*)zend_fetch_resource(
403403
Z_RES_P(zbrigade), PHP_STREAM_BRIGADE_RES_NAME, le_bucket_brigade)) == NULL) {
404-
RETURN_FALSE;
404+
return;
405405
}
406406

407407
ZVAL_NULL(return_value);
@@ -429,7 +429,7 @@ static void php_stream_bucket_attach(int append, INTERNAL_FUNCTION_PARAMETERS)
429429
ZEND_PARSE_PARAMETERS_START(2, 2)
430430
Z_PARAM_RESOURCE(zbrigade)
431431
Z_PARAM_OBJECT(zobject)
432-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
432+
ZEND_PARSE_PARAMETERS_END();
433433

434434
if (NULL == (pzbucket = zend_hash_str_find(Z_OBJPROP_P(zobject), "bucket", sizeof("bucket")-1))) {
435435
php_error_docref(NULL, E_WARNING, "Object has no bucket property");
@@ -438,11 +438,11 @@ static void php_stream_bucket_attach(int append, INTERNAL_FUNCTION_PARAMETERS)
438438

439439
if ((brigade = (php_stream_bucket_brigade*)zend_fetch_resource(
440440
Z_RES_P(zbrigade), PHP_STREAM_BRIGADE_RES_NAME, le_bucket_brigade)) == NULL) {
441-
RETURN_FALSE;
441+
return;
442442
}
443443

444444
if ((bucket = (php_stream_bucket *)zend_fetch_resource_ex(pzbucket, PHP_STREAM_BUCKET_RES_NAME, le_bucket)) == NULL) {
445-
RETURN_FALSE;
445+
return;
446446
}
447447

448448
if (NULL != (pzdata = zend_hash_str_find(Z_OBJPROP_P(zobject), "data", sizeof("data")-1)) && Z_TYPE_P(pzdata) == IS_STRING) {
@@ -500,7 +500,7 @@ PHP_FUNCTION(stream_bucket_new)
500500
ZEND_PARSE_PARAMETERS_START(2, 2)
501501
Z_PARAM_ZVAL(zstream)
502502
Z_PARAM_STRING(buffer, buffer_len)
503-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
503+
ZEND_PARSE_PARAMETERS_END();
504504

505505
php_stream_from_zval(stream, zstream);
506506

@@ -560,7 +560,7 @@ PHP_FUNCTION(stream_filter_register)
560560
ZEND_PARSE_PARAMETERS_START(2, 2)
561561
Z_PARAM_STR(filtername)
562562
Z_PARAM_STR(classname)
563-
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
563+
ZEND_PARSE_PARAMETERS_END();
564564

565565
RETVAL_FALSE;
566566

0 commit comments

Comments
 (0)