/php-src/ext/mbstring/tests/ |
H A D | bug48645.phpt | 7 var_dump(bin2hex(mb_convert_encoding("�", "UTF-8", "HTML-ENTITIES"))); 8 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 9 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 10 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 11 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 12 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 13 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 14 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 15 var_dump(bin2hex(mb_convert_encoding("", "UTF-8", "HTML-ENTITIES"))); 16 var_dump(bin2hex(mb_convert_encoding("	", "UTF-8", "HTML-ENTITIES"))); [all …]
|
H A D | pictogram1.phpt | 10 var_dump(bin2hex(mb_convert_encoding("\xf8\x9f", "UCS-4BE", "SJIS-Mobile#DOCOMO"))); 11 var_dump(bin2hex(mb_convert_encoding("\xf6\x60", "UCS-4BE", "SJIS-Mobile#KDDI"))); 12 var_dump(bin2hex(mb_convert_encoding("\xf9\x8b", "UCS-4BE", "SJIS-Mobile#SOFTBANK"))); 14 var_dump(bin2hex(mb_convert_encoding("\xf9\xe6", "UCS-4BE", "SJIS-Mobile#DOCOMO"))); 15 var_dump(bin2hex(mb_convert_encoding("\xf6\xec", "UCS-4BE", "SJIS-Mobile#KDDI"))); 16 var_dump(bin2hex(mb_convert_encoding("\xf7\x50", "UCS-4BE", "SJIS-Mobile#SOFTBANK"))); 18 var_dump(bin2hex(mb_convert_encoding("\xf9\x85", "UCS-4BE", "SJIS-Mobile#DOCOMO"))); 19 var_dump(bin2hex(mb_convert_encoding("\xf4\x89", "UCS-4BE", "SJIS-Mobile#KDDI"))); 20 var_dump(bin2hex(mb_convert_encoding("\xf7\xb0", "UCS-4BE", "SJIS-Mobile#SOFTBANK"))); 22 var_dump(bin2hex(mb_convert_encoding("\xf3\xd2", "UCS-4BE", "SJIS-Mobile#KDDI"))); [all …]
|
H A D | mb_stristr_variation5.phpt | 24 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_upper, false))); 25 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_upper, true))); 26 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_lower, false))); 27 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_lower, true))); 29 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_mixed, true))); 33 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_upper, false))); 34 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_upper, true))); 35 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_lower, false))); 36 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_lower, true))); 37 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_mixed, false))); [all …]
|
H A D | mb_strrichr_variation5.phpt | 24 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_upper, false))); 25 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_upper, true))); 26 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_lower, false))); 27 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_lower, true))); 29 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_mixed, true))); 33 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_upper, false))); 34 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_upper, true))); 35 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_lower, false))); 36 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_lower, true))); 37 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_mixed, false))); [all …]
|
H A D | mb_convert_encoding_stateful.phpt | 11 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b24402121"), "UTF-8", "ISO-2022-JP")), "\n"; 12 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b24422121"), "UTF-8", "ISO-2022-JP")), "\n"; 13 echo bin2hex(mb_convert_encoding(pack("H*", "1b28421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 14 echo bin2hex(mb_convert_encoding(pack("H*", "1b284a1b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 15 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 16 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 17 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 18 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 20 echo bin2hex(mb_convert_encoding(pack("H*", "1b2429430e0f61626364"), "UTF-8", "ISO-2022-KR")), "\n"; 22 echo bin2hex(mb_convert_encoding(pack("H*", "7e7b7e7d61626364"), "UTF-8", "HZ")), "\n";
|
H A D | casemapping.phpt | 32 echo bin2hex(mb_convert_case($str, MB_CASE_LOWER)), "\n"; 33 echo bin2hex(mb_convert_case($str, MB_CASE_LOWER_SIMPLE)), "\n"; 34 echo bin2hex(mb_convert_case($str, MB_CASE_FOLD)), "\n"; 35 echo bin2hex(mb_convert_case($str, MB_CASE_FOLD_SIMPLE)), "\n"; 40 echo bin2hex(mb_convert_case($str, MB_CASE_UPPER)), "\n"; 42 echo bin2hex(mb_convert_case($str, MB_CASE_FOLD)), "\n"; 43 echo bin2hex(mb_convert_case($str, MB_CASE_FOLD_SIMPLE)), "\n"; 48 echo bin2hex(mb_convert_case($str, MB_CASE_LOWER)), "\n"; 50 echo bin2hex(mb_convert_case($str, MB_CASE_FOLD)), "\n"; 56 echo bin2hex(mb_convert_case($str, MB_CASE_UPPER)), "\n"; [all …]
|
H A D | mb_substr.phpt | 28 print "1: ". bin2hex(mb_substr($euc_jp, 10, 10, 'EUC-JP')) . "\n"; 29 print "2: ". bin2hex(mb_substr($euc_jp, 0, 100, 'EUC-JP')) . "\n"; 32 print ($str === "") ? "3 OK\n" : "BAD: " . bin2hex($str) . "\n"; 35 print ($str !== "") ? "4 OK: " . bin2hex($str) . "\n" : "BAD: " . bin2hex($str) . "\n"; 38 print "1: " . bin2hex(mb_substr($sjis, 0, 3, 'SJIS')) . "\n"; 39 print "2: " . bin2hex(mb_substr($sjis, -1, null, 'SJIS')) . "\n"; 40 print "3: " . bin2hex(mb_substr($sjis, -5, 3, 'SJIS')) . "\n"; 41 print "4: " . bin2hex(mb_substr($sjis, 1, null, 'SJIS')) . "\n"; 42 print "5:" . bin2hex(mb_substr($sjis, 10, 0, 'SJIS')) . "\n"; 44 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'SJIS')) . "\n"; [all …]
|
H A D | mb_strcut_missing_boundary_check.phpt | 8 var_dump(bin2hex(mb_strcut("\x61\x00\x00\x00\x62\x00\x00\x00\x63\x00\x00\x00", 0, 32))); 10 var_dump(bin2hex(mb_strcut("\x00\x00\x00\x61\x00\x00\x00\x62\x00\x00\x00\x63", 0, 32))); 12 var_dump(bin2hex(mb_strcut("\x61\x00\x62\x00\x63\x00", 0, 32))); 14 var_dump(bin2hex(mb_strcut("\x00\x61\x00\x62\x00\x63", 0, 32))); 16 var_dump(bin2hex(mb_strcut("\x00\x61\x00\x62\x00\x63", 0, 32))); 18 var_dump(bin2hex(mb_strcut("abc", 0, 32))); 20 var_dump(bin2hex(mb_strcut("abc", 0, 32)));
|
H A D | mb_convert_kana.phpt | 49 echo bin2hex(mb_convert_kana("\xFF\x70", 'K', 'UTF-16BE')), "\n"; 57 echo bin2hex(mb_convert_kana("\xFF\x01", 'a', 'UTF-16BE')), "\n"; 58 echo bin2hex(mb_convert_kana("\xFF\x21", 'r', 'UTF-16BE')), "\n"; 59 echo bin2hex(mb_convert_kana("\xFF\x10", 'n', 'UTF-16BE')), "\n"; 60 echo bin2hex(mb_convert_kana("\x30\x00", 's', 'UTF-16BE')), "\n"; 64 echo bin2hex(mb_convert_kana("\x30\x41", 'h', 'UTF-16BE')), "\n"; 65 echo bin2hex(mb_convert_kana("\x30\x01", 'h', 'UTF-16BE')), "\n"; 66 echo bin2hex(mb_convert_kana("\x30\x02", 'h', 'UTF-16BE')), "\n"; 67 echo bin2hex(mb_convert_kana("\x30\x0C", 'h', 'UTF-16BE')), "\n"; 68 echo bin2hex(mb_convert_kana("\x30\x0D", 'h', 'UTF-16BE')), "\n"; [all …]
|
H A D | mb_ucfirst_lcfirst.phpt | 58 var_dump(bin2hex(mb_ucfirst(mb_convert_encoding("ebi", "SJIS", "UTF-8"), "SJIS"))); 60 var_dump(bin2hex(mb_ucfirst(hex2bin("8471"), "SJIS"))); /* б */ 61 var_dump(bin2hex(mb_lcfirst(hex2bin("8441"), "SJIS"))); /* Б */ 62 var_dump(bin2hex(mb_ucfirst(hex2bin("83bf"), "SJIS"))); /* α */ 63 var_dump(bin2hex(mb_lcfirst(hex2bin("839f"), "SJIS"))); /* Α */ 64 var_dump(bin2hex(mb_lcfirst(hex2bin("82a0"), "SJIS"))); /* あ */ 65 var_dump(bin2hex(mb_ucfirst(hex2bin("83bf8471"), "SJIS"))); 66 var_dump(bin2hex(mb_lcfirst(hex2bin("839f8441"), "SJIS"))); 68 var_dump(bin2hex(mb_ucfirst(hex2bin("a6d8"), "EUC-JP"))); /* Ω */ 69 var_dump(bin2hex(mb_lcfirst(hex2bin("a6b8"), "EUC-JP"))); /* ω */ [all …]
|
H A D | bug49528.phpt | 7 var_dump(bin2hex(mb_convert_encoding("\xff\xfe\x01\x02\x03\x04", "UCS-2BE", "UTF-16"))); 8 var_dump(bin2hex(mb_convert_encoding("\xfe\xff\x01\x02\x03\x04", "UCS-2BE", "UTF-16"))); 9 var_dump(bin2hex(mb_convert_encoding("\xff\xfe\xff\xfe\x01\x02\x03\x04", "UCS-2BE", "UTF-16"))); 10 var_dump(bin2hex(mb_convert_encoding("\xff\xfe\xfe\xff\x01\x02\x03\x04", "UCS-2BE", "UTF-16"))); 11 var_dump(bin2hex(mb_convert_encoding("\xfe\xff\xff\xfe\x01\x02\x03\x04", "UCS-2BE", "UTF-16"))); 12 var_dump(bin2hex(mb_convert_encoding("\xfe\xff\xfe\xff\x01\x02\x03\x04", "UCS-2BE", "UTF-16")));
|
H A D | mb_decode_mimeheader_variation4.phpt | 12 var_dump(bin2hex(mb_decode_mimeheader("2,\rGCG\xb3GS"))); 17 var_dump(bin2hex(mb_decode_mimeheader("\n8i"))); 21 var_dump(bin2hex(mb_decode_mimeheader("\r"))); 25 var_dump(bin2hex(mb_decode_mimeheader("\n "))); 29 var_dump(bin2hex(mb_decode_mimeheader(",\x13@=,"))); 33 var_dump(bin2hex(mb_decode_mimeheader("=?I?B??="))); 50 var_dump(bin2hex(mb_decode_mimeheader("=?us?B?"))); 82 var_dump(bin2hex(mb_decode_mimeheader(""))); 88 var_dump(bin2hex(mb_decode_mimeheader("6"))); 92 var_dump(bin2hex(mb_decode_mimeheader("6"))); [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | pack_float.phpt | 7 bin2hex(pack("e", "")), 8 bin2hex(pack("e", "a")), 9 bin2hex(pack("e", " ")), 10 bin2hex(pack("e", NULL)), 11 bin2hex(pack("e", 0)), 12 bin2hex(pack("e", 1)), 13 bin2hex(pack("e", 1.0)), 17 bin2hex(pack("e", -1)), 24 bin2hex(pack("E", "")), 28 bin2hex(pack("E", 0)), [all …]
|
H A D | md5raw.phpt | 5 echo bin2hex(md5("", TRUE))."\n"; 6 echo bin2hex(md5("a", TRUE))."\n"; 7 echo bin2hex(md5("abc", TRUE))."\n"; 8 echo bin2hex(md5("message digest", TRUE))."\n"; 9 echo bin2hex(md5("abcdefghijklmnopqrstuvwxyz", TRUE))."\n"; 10 echo bin2hex(md5("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", TRUE))."\n"; 11 echo bin2hex(md5("12345678901234567890123456789012345678901234567890123456789012345678901234567890"…
|
H A D | strstr_variation1.phpt | 6 $stringAsHex = bin2hex($string); 8 echo bin2hex( chr(128) ) ." => "; 9 var_dump( bin2hex( strstr($string, chr(128) ) ) ); 10 echo bin2hex( chr(255) ) ." => "; 11 var_dump( bin2hex( strstr($string, chr(255) ) ) ); 12 echo bin2hex( chr(256) ) ." => "; 13 var_dump( bin2hex( strstr($string, chr(256) ) ) );
|
H A D | strval_variation2.phpt | 24 echo bin2hex(strval($s0)); 26 echo bin2hex(strval($s1)); 28 echo bin2hex(strval($s2)); 30 echo bin2hex(strval($s3)); 32 echo bin2hex(strval($s4)); 34 echo bin2hex(strval($s5)); 36 echo bin2hex(strval($s6)); 38 echo bin2hex(strval($s7)); 40 echo bin2hex(strval($s8)); 42 echo bin2hex(strval($s9)); [all …]
|
H A D | sha1raw.phpt | 5 echo bin2hex(sha1("abc", TRUE))."\n"; 6 echo bin2hex(sha1("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", TRUE))."\n"; 7 echo bin2hex(sha1("a", TRUE))."\n"; 8 echo bin2hex(sha1("0123456701234567012345670123456701234567012345670123456701234567", TRUE))."\n";
|
H A D | hex2bin_basic.phpt | 8 var_dump(bin2hex(hex2bin('012345')) == '012345'); 9 var_dump(bin2hex(hex2bin('abc123')) == 'abc123'); 10 var_dump(bin2hex(hex2bin('123abc')) == '123abc'); 11 var_dump(bin2hex(hex2bin('FFFFFF')) == 'ffffff');
|
/php-src/ext/hash/tests/ |
H A D | hash_hkdf_basic.phpt | 10 echo 'md2: ', bin2hex(hash_hkdf('md2', $ikm)), "\n"; 11 echo 'md4: ', bin2hex(hash_hkdf('md4', $ikm)), "\n"; 12 echo 'md5: ', bin2hex(hash_hkdf('md5', $ikm)), "\n"; 13 echo 'sha1: ', bin2hex(hash_hkdf('sha1', $ikm)), "\n"; 14 echo 'sha224: ', bin2hex(hash_hkdf('sha224', $ikm)), "\n"; 15 echo 'sha256: ', bin2hex(hash_hkdf('sha256', $ikm)), "\n"; 16 echo 'sha384: ', bin2hex(hash_hkdf('sha384', $ikm)), "\n"; 17 echo 'sha512: ', bin2hex(hash_hkdf('sha512', $ikm)), "\n"; 18 echo 'ripemd128: ', bin2hex(hash_hkdf('ripemd128', $ikm)), "\n"; 44 echo 'snefru: ', bin2hex(hash_hkdf('snefru', $ikm)), "\n"; [all …]
|
/php-src/ext/iconv/tests/ |
H A D | iconv_stream_filter_delimiter.phpt | 10 var_dump(bin2hex(fread($fp, 10))); 11 var_dump(bin2hex(fread($fp, 5))); 12 var_dump(bin2hex(fread($fp, 1))); 17 var_dump(bin2hex(fread($fp, 10))); 18 var_dump(bin2hex(fread($fp, 5))); 19 var_dump(bin2hex(fread($fp, 1))); 24 var_dump(bin2hex(fread($fp, 10))); 25 var_dump(bin2hex(fread($fp, 5))); 26 var_dump(bin2hex(fread($fp, 1))); 32 var_dump(bin2hex(fread($fp, 5))); [all …]
|
H A D | iconv_stream_filter.phpt | 10 var_dump(bin2hex(fread($fp, 10))); 11 var_dump(bin2hex(fread($fp, 5))); 12 var_dump(bin2hex(fread($fp, 1))); 17 var_dump(bin2hex(fread($fp, 10))); 18 var_dump(bin2hex(fread($fp, 5))); 19 var_dump(bin2hex(fread($fp, 1))); 25 var_dump(bin2hex(@fread($fp, 10)) != "a4b3a4f3a4cba4c1a4cf"); 26 var_dump(bin2hex(fread($fp, 5)) != "69636f6e76"); 27 var_dump(bin2hex(fread($fp, 1)) != "0a");
|
H A D | iconv_basic.phpt | 20 var_dump(bin2hex($euc_jp_string)); 22 var_dump(bin2hex(iconv('SJIS', 'EUC-JP', $sjis_string ))); 23 var_dump(bin2hex(iconv('UTF-8', 'EUC-JP', $utf8_string))); 27 var_dump(bin2hex($sjis_string)); 29 var_dump(bin2hex(iconv('EUC-JP', 'SJIS', $euc_jp_string))); 30 var_dump(bin2hex(iconv('UTF-8', 'SJIS', $utf8_string))); 34 var_dump(bin2hex($utf8_string)); 36 var_dump(bin2hex(iconv('SJIS', 'UTF-8', $sjis_string))); 37 var_dump(bin2hex(iconv('EUC-JP', 'UTF-8', $euc_jp_string)));
|
/php-src/ext/sodium/tests/ |
H A D | crypto_generichash.phpt | 8 var_dump(bin2hex($q)); 10 var_dump(bin2hex($q)); 12 var_dump(bin2hex($q)); 14 var_dump(bin2hex($q)); 17 var_dump(bin2hex($q)); 22 var_dump(bin2hex($q)); 27 var_dump(bin2hex($q)); 33 var_dump(bin2hex($q)); 36 $exp = bin2hex($q); 38 $act = bin2hex(
|
/php-src/ext/openssl/tests/ |
H A D | openssl_pbkdf2_basic.phpt | 10 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 1))); 11 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 2))); 12 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 4096))); 16 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 16777216))); 19 var_dump(bin2hex(openssl_pbkdf2('passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsaltSALTsalt',… 20 var_dump(bin2hex(openssl_pbkdf2("pass\0word", "sa\0lt", 16, 4096)));
|
/php-src/Zend/tests/ |
H A D | xor_002.phpt | 8 var_dump(bin2hex($s ^ $s1)); 12 var_dump(bin2hex($s ^ $s1)); 16 var_dump(bin2hex($s ^ $s1)); 20 var_dump(bin2hex($s ^ $s1)); 24 var_dump(bin2hex($s ^ $s1)); 28 var_dump(bin2hex($s));
|