← Back
Editing: oom_mb_eregi_replace.phpt
--TEST-- mb_eregi_replace() doesn't reach hard limit --EXTENSIONS-- mbstring --SKIPIF-- <?php if (!function_exists("mb_eregi_replace")) die("skip mbregex support unavailable"); ?> --INI-- memory_limit=8M --FILE-- <?php // 2 MB == memory_limit / 4 mb_eregi_replace("a", "bbbbbbbbbb", str_repeat("a", 2 * 1024 * 1024)); echo "not reached\n"; ?> --EXPECTF-- Fatal error: Allowed memory size of 8388608 bytes exhausted %S(tried to allocate %d bytes) in %s on line %d
Save File
Cancel