Skip to content

Commit 0040e59

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Fixed bug #80457
2 parents bfa4f81 + 9dda22b commit 0040e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/streamsfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ PHP_FUNCTION(stream_get_contents)
431431

432432
if (maxlen_is_null) {
433433
maxlen = (ssize_t) PHP_STREAM_COPY_ALL;
434-
} else if (maxlen < 0 && maxlen != PHP_STREAM_COPY_ALL) {
434+
} else if (maxlen < 0 && maxlen != (ssize_t)PHP_STREAM_COPY_ALL) {
435435
zend_argument_value_error(2, "must be greater than or equal to -1");
436436
RETURN_THROWS();
437437
}

0 commit comments

Comments
 (0)