Skip to content

Commit 0d0f774

Browse files
committed
streams: use call in if statement directly
1 parent fb2585f commit 0d0f774

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/standard/streamsfuncs.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,6 @@ PHP_FUNCTION(stream_copy_to_stream)
482482
zend_long maxlen, pos = 0;
483483
bool maxlen_is_null = 1;
484484
size_t len;
485-
int ret;
486485

487486
ZEND_PARSE_PARAMETERS_START(2, 4)
488487
PHP_Z_PARAM_STREAM(src)
@@ -501,9 +500,7 @@ PHP_FUNCTION(stream_copy_to_stream)
501500
RETURN_FALSE;
502501
}
503502

504-
ret = php_stream_copy_to_stream_ex(src, dest, maxlen, &len);
505-
506-
if (ret != SUCCESS) {
503+
if (php_stream_copy_to_stream_ex(src, dest, maxlen, &len) != SUCCESS) {
507504
RETURN_FALSE;
508505
}
509506
RETURN_LONG(len);

0 commit comments

Comments
 (0)