/PHP-8.0/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 | 27 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_upper, false))); 28 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_upper, true))); 29 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_lower, false))); 30 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_lower, true))); 32 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_mixed, true))); 36 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_upper, false))); 37 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_upper, true))); 38 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_lower, false))); 39 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_lower, true))); 40 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_mixed, false))); [all …]
|
H A D | mb_strrichr_variation5.phpt | 27 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_upper, false))); 28 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_upper, true))); 29 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_lower, false))); 30 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_lower, true))); 32 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_mixed, true))); 36 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_upper, false))); 37 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_upper, true))); 38 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_lower, false))); 39 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_lower, true))); 40 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_mixed, false))); [all …]
|
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_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 | mb_strcut_missing_boundary_check.phpt | 11 var_dump(bin2hex(mb_strcut("\x61\x00\x00\x00\x62\x00\x00\x00\x63\x00\x00\x00", 0, 32))); 13 var_dump(bin2hex(mb_strcut("\x00\x00\x00\x61\x00\x00\x00\x62\x00\x00\x00\x63", 0, 32))); 15 var_dump(bin2hex(mb_strcut("\x61\x00\x62\x00\x63\x00", 0, 32))); 17 var_dump(bin2hex(mb_strcut("\x00\x61\x00\x62\x00\x63", 0, 32))); 19 var_dump(bin2hex(mb_strcut("\x00\x61\x00\x62\x00\x63", 0, 32))); 21 var_dump(bin2hex(mb_strcut("abc", 0, 32))); 23 var_dump(bin2hex(mb_strcut("abc", 0, 32)));
|
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_substr.phpt | 16 print "1: ". bin2hex(mb_substr($euc_jp, 10, 10,'EUC-JP')) . "\n"; 17 print "2: ". bin2hex(mb_substr($euc_jp, 0, 100,'EUC-JP')) . "\n"; 21 ($str === "") ? print "3 OK\n" : print "NG: ".bin2hex($str)."\n"; 24 ($str !== "") ? print "4 OK: ".bin2hex($str)."\n" : print "NG: ".bin2hex($str)."\n";
|
/PHP-8.0/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 | 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');
|
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 | sapi_windows_cp_conv.phpt | 11 bin2hex(sapi_windows_cp_conv(65001, 1252, 'äöü')), 12 bin2hex(sapi_windows_cp_conv('utf-8', 1252, 'äöü')), 13 bin2hex(sapi_windows_cp_conv(65001, 'windows-1252', 'äöü')), 14 bin2hex(sapi_windows_cp_conv('utf-8', 'windows-1252', 'äöü')),
|
H A D | bin2hex.phpt | 2 bin2hex() function 9 echo bin2hex($s)."\n"; 10 echo bin2hex("abc")."\n";
|
H A D | stripcslashes_basic.phpt | 13 var_dump(bin2hex(stripcslashes('\\a'))); 14 var_dump(bin2hex(stripcslashes('\\b'))); 15 var_dump(bin2hex(stripcslashes('\\f'))); 16 var_dump(bin2hex(stripcslashes('\\t'))); 17 var_dump(bin2hex(stripcslashes('\\v')));
|
/PHP-8.0/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-8.0/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 | 23 var_dump(bin2hex($euc_jp_string)); 25 var_dump(bin2hex(iconv('SJIS', 'EUC-JP', $sjis_string ))); 26 var_dump(bin2hex(iconv('UTF-8', 'EUC-JP', $utf8_string))); 30 var_dump(bin2hex($sjis_string)); 32 var_dump(bin2hex(iconv('EUC-JP', 'SJIS', $euc_jp_string))); 33 var_dump(bin2hex(iconv('UTF-8', 'SJIS', $utf8_string))); 37 var_dump(bin2hex($utf8_string)); 39 var_dump(bin2hex(iconv('SJIS', 'UTF-8', $sjis_string))); 40 var_dump(bin2hex(iconv('EUC-JP', 'UTF-8', $euc_jp_string)));
|
/PHP-8.0/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-8.0/ext/openssl/tests/ |
H A D | openssl_pbkdf2_basic.phpt | 8 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 1))); 9 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 2))); 10 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 4096))); 14 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 16777216))); 17 var_dump(bin2hex(openssl_pbkdf2('passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsaltSALTsalt',… 18 var_dump(bin2hex(openssl_pbkdf2("pass\0word", "sa\0lt", 16, 4096)));
|
/PHP-8.0/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));
|