summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/bug71882.phpt
blob: ae0137b5999ae5198c777c6e759119fc76251a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #71882 (Negative ftruncate() on php://memory exhausts memory)
--FILE--
<?php
$fd = fopen("php://memory", "w+");
ftruncate($fd, -1);
?>
==DONE==
--EXPECTF--
Warning: ftruncate(): Negative size is not supported in %s%ebug71882.php on line %d
==DONE==