mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
Merge branch 'PHP-5.6' into PHP-7.0
(cherry picked from commit f93fd8ce32
)
This commit is contained in:
parent
874697e30a
commit
2970630133
@ -3,9 +3,9 @@ Bug #71882 (Negative ftruncate() on php://memory exhausts memory)
|
||||
--FILE--
|
||||
<?php
|
||||
$fd = fopen("php://memory", "w+");
|
||||
ftruncate($fd, -1);
|
||||
var_dump(ftruncate($fd, -1));
|
||||
?>
|
||||
==DONE==
|
||||
--EXPECTF--
|
||||
Warning: ftruncate(): Negative size is not supported in %s%ebug71882.php on line %d
|
||||
bool(false)
|
||||
==DONE==
|
||||
|
Loading…
Reference in New Issue
Block a user