summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-08-31 14:51:37 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2016-08-31 14:51:37 +0200
commit314a9f8553625eec8f5cfc60360790533d786bc5 (patch)
tree42736a5b644da6b63f5094c88092b908af936f8a
parent747b61808bb8df5bbbf821379c5d6905cd5b10a2 (diff)
downloadphp-git-314a9f8553625eec8f5cfc60360790533d786bc5.tar.gz
Fix #71882 amendment: Negative ftruncate() on php://memory exhausts memory
To avoid BC breaks, we do not raise a warning for now.
-rw-r--r--ext/standard/file.c2
1 files changed, 1 insertions, 1 deletions
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;
}