--TEST-- Test mb_regex_encoding() function : usage variations - test different encodings --SKIPIF-- --FILE-- getMessage() . \PHP_EOL; } var_dump(mb_regex_encoding()); $iterator++; } echo "Done"; ?> --EXPECT-- *** Testing mb_regex_encoding() : usage variations *** -- Iteration 1 -- string(5) "UTF-8" bool(true) string(5) "UCS-4" -- Iteration 2 -- string(5) "UCS-4" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-4BE" given string(5) "UCS-4" -- Iteration 3 -- string(5) "UCS-4" bool(true) string(7) "UCS-4LE" -- Iteration 4 -- string(7) "UCS-4LE" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-2" given string(7) "UCS-4LE" -- Iteration 5 -- string(7) "UCS-4LE" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-2BE" given string(7) "UCS-4LE" -- Iteration 6 -- string(7) "UCS-4LE" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UCS-2LE" given string(7) "UCS-4LE" -- Iteration 7 -- string(7) "UCS-4LE" bool(true) string(5) "UCS-4" -- Iteration 8 -- string(5) "UCS-4" bool(true) string(5) "UCS-4" -- Iteration 9 -- string(5) "UCS-4" bool(true) string(7) "UCS-4LE" -- Iteration 10 -- string(7) "UCS-4LE" bool(true) string(6) "UTF-16" -- Iteration 11 -- string(6) "UTF-16" bool(true) string(6) "UTF-16" -- Iteration 12 -- string(6) "UTF-16" bool(true) string(8) "UTF-16LE" -- Iteration 13 -- string(8) "UTF-16LE" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UTF-7" given string(8) "UTF-16LE" -- Iteration 14 -- string(8) "UTF-16LE" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UTF7-IMAP" given string(8) "UTF-16LE" -- Iteration 15 -- string(8) "UTF-16LE" bool(true) string(5) "UTF-8" -- Iteration 16 -- string(5) "UTF-8" bool(true) string(5) "ASCII" -- Iteration 17 -- string(5) "ASCII" bool(true) string(6) "EUC-JP" -- Iteration 18 -- string(6) "EUC-JP" bool(true) string(4) "SJIS" -- Iteration 19 -- string(4) "SJIS" bool(true) string(6) "EUC-JP" -- Iteration 20 -- string(6) "EUC-JP" bool(true) string(4) "SJIS" -- Iteration 21 -- string(4) "SJIS" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "ISO-2022-JP" given string(4) "SJIS" -- Iteration 22 -- string(4) "SJIS" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "JIS" given string(4) "SJIS" -- Iteration 23 -- string(4) "SJIS" bool(true) string(10) "ISO-8859-1" -- Iteration 24 -- string(10) "ISO-8859-1" bool(true) string(10) "ISO-8859-2" -- Iteration 25 -- string(10) "ISO-8859-2" bool(true) string(10) "ISO-8859-3" -- Iteration 26 -- string(10) "ISO-8859-3" bool(true) string(10) "ISO-8859-4" -- Iteration 27 -- string(10) "ISO-8859-4" bool(true) string(10) "ISO-8859-5" -- Iteration 28 -- string(10) "ISO-8859-5" bool(true) string(10) "ISO-8859-6" -- Iteration 29 -- string(10) "ISO-8859-6" bool(true) string(10) "ISO-8859-7" -- Iteration 30 -- string(10) "ISO-8859-7" bool(true) string(10) "ISO-8859-8" -- Iteration 31 -- string(10) "ISO-8859-8" bool(true) string(10) "ISO-8859-9" -- Iteration 32 -- string(10) "ISO-8859-9" bool(true) string(11) "ISO-8859-10" -- Iteration 33 -- string(11) "ISO-8859-10" bool(true) string(11) "ISO-8859-13" -- Iteration 34 -- string(11) "ISO-8859-13" bool(true) string(11) "ISO-8859-14" -- Iteration 35 -- string(11) "ISO-8859-14" bool(true) string(11) "ISO-8859-15" -- Iteration 36 -- string(11) "ISO-8859-15" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "byte2be" given string(11) "ISO-8859-15" -- Iteration 37 -- string(11) "ISO-8859-15" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "byte2le" given string(11) "ISO-8859-15" -- Iteration 38 -- string(11) "ISO-8859-15" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "byte4be" given string(11) "ISO-8859-15" -- Iteration 39 -- string(11) "ISO-8859-15" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "byte4le" given string(11) "ISO-8859-15" -- Iteration 40 -- string(11) "ISO-8859-15" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "BASE64" given string(11) "ISO-8859-15" -- Iteration 41 -- string(11) "ISO-8859-15" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "HTML-ENTITIES" given string(11) "ISO-8859-15" -- Iteration 42 -- string(11) "ISO-8859-15" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "7bit" given string(11) "ISO-8859-15" -- Iteration 43 -- string(11) "ISO-8859-15" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "8bit" given string(11) "ISO-8859-15" -- Iteration 44 -- string(11) "ISO-8859-15" bool(true) string(6) "EUC-CN" -- Iteration 45 -- string(6) "EUC-CN" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "CP936" given string(6) "EUC-CN" -- Iteration 46 -- string(6) "EUC-CN" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "HZ" given string(6) "EUC-CN" -- Iteration 47 -- string(6) "EUC-CN" bool(true) string(6) "EUC-TW" -- Iteration 48 -- string(6) "EUC-TW" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "CP950" given string(6) "EUC-TW" -- Iteration 49 -- string(6) "EUC-TW" bool(true) string(4) "BIG5" -- Iteration 50 -- string(4) "BIG5" bool(true) string(6) "EUC-KR" -- Iteration 51 -- string(6) "EUC-KR" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "UHC" given string(6) "EUC-KR" -- Iteration 52 -- string(6) "EUC-KR" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "ISO-2022-KR" given string(6) "EUC-KR" -- Iteration 53 -- string(6) "EUC-KR" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "Windows-1251" given string(6) "EUC-KR" -- Iteration 54 -- string(6) "EUC-KR" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "Windows-1252" given string(6) "EUC-KR" -- Iteration 55 -- string(6) "EUC-KR" mb_regex_encoding(): Argument #1 ($encoding) must be a valid encoding, "CP866" given string(6) "EUC-KR" -- Iteration 56 -- string(6) "EUC-KR" bool(true) string(5) "KOI8R" Done