Skip to content

Commit b2d267d

Browse files
committed
Fix #71882 amendment 2: Negative ftruncate() on php://memory exhausts memory
1 parent 314a9f8 commit b2d267d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/tests/file/bug71882.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Bug #71882 (Negative ftruncate() on php://memory exhausts memory)
33
--FILE--
44
<?php
55
$fd = fopen("php://memory", "w+");
6-
ftruncate($fd, -1);
6+
var_dump(ftruncate($fd, -1));
77
?>
88
==DONE==
99
--EXPECTF--
10-
Warning: ftruncate(): Negative size is not supported in %s%ebug71882.php on line %d
10+
bool(false)
1111
==DONE==

0 commit comments

Comments
 (0)