Skip to content

Commit

Permalink
Merge branch 'PHP-8.0'
Browse files Browse the repository at this point in the history
* PHP-8.0:
  Fixed bug #80457
  • Loading branch information
nikic committed Dec 2, 2020
2 parents bfa4f81 + 9dda22b commit 0040e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/standard/streamsfuncs.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ PHP_FUNCTION(stream_get_contents)

if (maxlen_is_null) {
maxlen = (ssize_t) PHP_STREAM_COPY_ALL;
} else if (maxlen < 0 && maxlen != PHP_STREAM_COPY_ALL) {
} else if (maxlen < 0 && maxlen != (ssize_t)PHP_STREAM_COPY_ALL) {
zend_argument_value_error(2, "must be greater than or equal to -1");
RETURN_THROWS();
}
Expand Down

0 comments on commit 0040e59

Please sign in to comment.