mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
commit
9dda22bd1e
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user