php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #80457
Patch php-streams-x32.patch revision 2020-12-01 15:28 UTC by bruno dot premont at restena dot lu

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;
 	}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC