summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-12-02 11:29:06 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-12-02 11:29:06 +0100
commitf2833ca1be8ab5888f4268e884fea25136808e36 (patch)
treea73c255fb3f366299d68e39a42357ce3d5befa2e
parentc283f53b24b84e0571ca2b29df05247a7344392c (diff)
parentd6fcaf5da4368918936a875876e0639b7e6f3bd2 (diff)
downloadphp-git-f2833ca1be8ab5888f4268e884fea25136808e36.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fixed bug #80457
-rw-r--r--ext/standard/streamsfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c
index 48a954cd74..68ad6483e8 100644
--- a/ext/standard/streamsfuncs.c
+++ b/ext/standard/streamsfuncs.c
@@ -429,7 +429,7 @@ PHP_FUNCTION(stream_get_contents)
Z_PARAM_LONG(desiredpos)
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
- if (maxlen < 0 && maxlen != PHP_STREAM_COPY_ALL) {
+ if (maxlen < 0 && maxlen != (ssize_t)PHP_STREAM_COPY_ALL) {
php_error_docref(NULL, E_WARNING, "Length must be greater than or equal to zero, or -1");
RETURN_FALSE;
}