From: Christoph M. Becker Date: Wed, 31 Aug 2016 11:24:37 +0000 (+0200) Subject: Fix #71882 amendment: Negative ftruncate() on php://memory exhausts memory X-Git-Tag: php-7.1.0RC1~3^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f215fb874ff30cf9be6322210c58021e75a7c393;p=php Fix #71882 amendment: Negative ftruncate() on php://memory exhausts memory To avoid BC breaks, we do not raise a warning for now. --- diff --git a/ext/standard/file.c b/ext/standard/file.c index d346ed9e92..f3b6df1274 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1513,7 +1513,7 @@ PHP_NAMED_FUNCTION(php_if_ftruncate) } if (size < 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Negative size is not supported"); + /* php_error_docref(NULL TSRMLS_CC, E_WARNING, "Negative size is not supported"); */ RETURN_FALSE; }