blob: 3cb6d85240b76b9945e9bf4bdc5de326b48f65c8 (
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+");
var_dump(ftruncate($fd, -1));
?>
==DONE==
--EXPECTF--
bool(false)
==DONE==
|