← Back
Editing: oom_mb_parse_str.phpt
--TEST-- mb_parse_str() doesn't reach hard limit --EXTENSIONS-- mbstring --INI-- memory_limit=8M --FILE-- <?php // 2 MB == memory_limit / 4 mb_parse_str(str_repeat("a&", 1024 * 1024), $result); 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