Skip to content

Commit 54cfa71

Browse files
nielsdosiluuu1994
andauthored
Apply suggestions from code review
Co-authored-by: Ilija Tovilo <[email protected]>
1 parent ea8a736 commit 54cfa71

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/output/gh15179.phpt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@ if (getenv("USE_ZEND_ALLOC") === "0") die("skip requires ZendMM");
1010
?>
1111
--FILE--
1212
<?php
13-
$var = '';
14-
for ($i = 0; $i < 20; $i++) {
15-
$var .= str_repeat('a', 1 * 1024 * 1024);
16-
}
13+
$var = str_repeat('a', 20 * 1024 * 1024);
1714

1815
output_add_rewrite_var($var, $var);
1916
?>
2017
--EXPECTF--
21-
Fatal error: Allowed memory size of 67108864 bytes exhausted at %s
18+
Fatal error: Allowed memory size of %d bytes exhausted at %s

0 commit comments

Comments
 (0)