← Back
Editing: oom_mb_encode_mimeheader.phpt
--TEST-- mb_encode_mimeheader() doesn't reach hard limit --EXTENSIONS-- mbstring --INI-- memory_limit=8M --FILE-- <?php // 2 MB == memory_limit / 4 mb_encode_mimeheader(str_repeat("\xFF", 2 * 1024 * 1024), "ISO-8859-1", "Q"); 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