Skip to content

Commit 17a605e

Browse files
committed
Increased memory limit for ext/standard/tests/streams/bug78902
Reducing the memory limit below the current memory has probably not been the intention of this test.
1 parent 1f0f633 commit 17a605e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/tests/streams/bug78902.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
--TEST--
22
Bug #78902: Memory leak when using stream_filter_append
33
--INI--
4-
memory_limit=512k
4+
memory_limit=2M
55
--FILE--
66
<?php
77

88
/** create temporary file 2mb file */
99
$tmp_file_name = tempnam(sys_get_temp_dir(), 'test_');
1010
$fp = fopen($tmp_file_name, 'w+');
11-
$size = 1024 * 1024 * 2; // 2mb
11+
$size = 1024 * 1024 * 4; // 4mb, larger than the memory limit
1212
$chunk = 1024;
1313
while ($size > 0) {
1414
fputs($fp, str_pad('', min($chunk,$size)));

0 commit comments

Comments
 (0)