Merge branch 'PHP-5.6' into PHP-7.0

(cherry picked from commit f93fd8ce32)
This commit is contained in:
Christoph M. Becker 2016-08-31 16:38:38 +02:00 committed by Anatol Belski
parent 874697e30a
commit 2970630133

View File

@ -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==