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