1--TEST-- 2Test mb_get_info() function 3--EXTENSIONS-- 4mbstring 5--INI-- 6mbstring.encoding_translation=1 7mbstring.language=Korean 8mbstring.internal_encoding=UTF-8 9mbstring.http_input=ISO-8859-1 10mbstring.http_output=ISO-8859-15 11mbstring.http_output_conv_mimetypes=abc 12mbstring.detect_order=UTF-8,ISO-8859-15,ISO-8859-1,ASCII 13mbstring.substitute_character=123 14mbstring.strict_detection=1 15--FILE-- 16<?php 17mb_parse_str("abc=def", $dummy); 18mb_convert_encoding("\xff\xff", "Shift_JIS", "UCS-2BE"); 19$result = mb_get_info(); 20var_dump($result); 21foreach (array_keys($result) as $key) { 22 var_dump($result[$key], mb_get_info($key)); 23} 24?> 25--EXPECT-- 26Deprecated: PHP Startup: Use of mbstring.http_input is deprecated in Unknown on line 0 27 28Deprecated: PHP Startup: Use of mbstring.http_output is deprecated in Unknown on line 0 29 30Deprecated: PHP Startup: Use of mbstring.internal_encoding is deprecated in Unknown on line 0 31array(13) { 32 ["internal_encoding"]=> 33 string(5) "UTF-8" 34 ["http_input"]=> 35 string(10) "ISO-8859-1" 36 ["http_output"]=> 37 string(11) "ISO-8859-15" 38 ["http_output_conv_mimetypes"]=> 39 string(3) "abc" 40 ["mail_charset"]=> 41 string(11) "ISO-2022-KR" 42 ["mail_header_encoding"]=> 43 string(6) "BASE64" 44 ["mail_body_encoding"]=> 45 string(4) "7bit" 46 ["illegal_chars"]=> 47 int(1) 48 ["encoding_translation"]=> 49 string(2) "On" 50 ["language"]=> 51 string(6) "Korean" 52 ["detect_order"]=> 53 array(4) { 54 [0]=> 55 string(5) "UTF-8" 56 [1]=> 57 string(11) "ISO-8859-15" 58 [2]=> 59 string(10) "ISO-8859-1" 60 [3]=> 61 string(5) "ASCII" 62 } 63 ["substitute_character"]=> 64 int(123) 65 ["strict_detection"]=> 66 string(2) "On" 67} 68string(5) "UTF-8" 69string(5) "UTF-8" 70string(10) "ISO-8859-1" 71string(10) "ISO-8859-1" 72string(11) "ISO-8859-15" 73string(11) "ISO-8859-15" 74string(3) "abc" 75string(3) "abc" 76string(11) "ISO-2022-KR" 77string(11) "ISO-2022-KR" 78string(6) "BASE64" 79string(6) "BASE64" 80string(4) "7bit" 81string(4) "7bit" 82int(1) 83int(1) 84string(2) "On" 85string(2) "On" 86string(6) "Korean" 87string(6) "Korean" 88array(4) { 89 [0]=> 90 string(5) "UTF-8" 91 [1]=> 92 string(11) "ISO-8859-15" 93 [2]=> 94 string(10) "ISO-8859-1" 95 [3]=> 96 string(5) "ASCII" 97} 98array(4) { 99 [0]=> 100 string(5) "UTF-8" 101 [1]=> 102 string(11) "ISO-8859-15" 103 [2]=> 104 string(10) "ISO-8859-1" 105 [3]=> 106 string(5) "ASCII" 107} 108int(123) 109int(123) 110string(2) "On" 111string(2) "On" 112