Patch php-streams-x32.patch for Filesystem function related Bug #80457
Patch version 2020-12-01 15:28 UTC
Return to Bug #80457 |
Download this patch
Patch Revisions:
Developer: bruno.premont@restena.lu
diff -NurpP a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c
--- a/ext/standard/streamsfuncs.c 2020-12-01 14:36:16.482710009 +0000
+++ b/ext/standard/streamsfuncs.c 2020-12-01 14:36:58.843245337 +0000
@@ -442,7 +442,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;
}
|