mirror of
https://github.com/php/php-src.git
synced 2026-04-28 02:33:17 +02:00
12 lines
200 B
PHP
12 lines
200 B
PHP
--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==
|