mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
13 lines
284 B
PHP
13 lines
284 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--
|
|
Warning: ftruncate(): Negative size is not supported in %s%ebug71882.php on line %d
|
|
bool(false)
|
|
==DONE==
|