Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
  Fixed bug #80457
This commit is contained in:
Nikita Popov 2020-12-02 11:29:41 +01:00
commit 9dda22bd1e

View File

@ -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();
}