diff options
-rw-r--r-- | ext/standard/streamsfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 1600b99794..9ca2def099 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -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(); } |