Skip to content

Commit f2833ca

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fixed bug #80457
2 parents c283f53 + d6fcaf5 commit f2833ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/streamsfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ PHP_FUNCTION(stream_get_contents)
429429
Z_PARAM_LONG(desiredpos)
430430
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
431431

432-
if (maxlen < 0 && maxlen != PHP_STREAM_COPY_ALL) {
432+
if (maxlen < 0 && maxlen != (ssize_t)PHP_STREAM_COPY_ALL) {
433433
php_error_docref(NULL, E_WARNING, "Length must be greater than or equal to zero, or -1");
434434
RETURN_FALSE;
435435
}

0 commit comments

Comments
 (0)