Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
  Fixed bug #80457
This commit is contained in:
Nikita Popov 2020-12-02 11:29:06 +01:00
commit f2833ca1be

View File

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