summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-08-31 16:33:14 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2016-08-31 16:33:14 +0200
commitb2d267d9ee034fa6b502901caa9a81bcc2212755 (patch)
treeb304429e09c28526397c85070055cf3ab56be1b1
parent314a9f8553625eec8f5cfc60360790533d786bc5 (diff)
downloadphp-git-b2d267d9ee034fa6b502901caa9a81bcc2212755.tar.gz
Fix #71882 amendment 2: Negative ftruncate() on php://memory exhausts memory
-rw-r--r--ext/standard/tests/file/bug71882.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/tests/file/bug71882.phpt b/ext/standard/tests/file/bug71882.phpt
index ae0137b599..3cb6d85240 100644
--- a/ext/standard/tests/file/bug71882.phpt
+++ b/ext/standard/tests/file/bug71882.phpt
@@ -3,9 +3,9 @@ Bug #71882 (Negative ftruncate() on php://memory exhausts memory)
--FILE--
<?php
$fd = fopen("php://memory", "w+");
-ftruncate($fd, -1);
+var_dump(ftruncate($fd, -1));
?>
==DONE==
--EXPECTF--
-Warning: ftruncate(): Negative size is not supported in %s%ebug71882.php on line %d
+bool(false)
==DONE==