From f215fb874ff30cf9be6322210c58021e75a7c393 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 31 Aug 2016 13:24:37 +0200 Subject: [PATCH] Fix #71882 amendment: Negative ftruncate() on php://memory exhausts memory To avoid BC breaks, we do not raise a warning for now. --- ext/standard/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1