/PHP-7.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_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_stristr_variation5.phpt | 33 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_upper, false))); 34 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_upper, true))); 35 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_lower, false))); 36 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_lower, true))); 38 var_dump(bin2hex(mb_stristr($string_ascii, $needle_ascii_mixed, true))); 42 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_upper, false))); 43 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_upper, true))); 44 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_lower, false))); 45 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_lower, true))); 46 var_dump(bin2hex(mb_stristr($string_mb, $needle_mb_mixed, false))); [all …]
|
H A D | mb_strrichr_variation5.phpt | 33 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_upper, false))); 34 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_upper, true))); 35 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_lower, false))); 36 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_lower, true))); 38 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_mixed, true))); 42 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_upper, false))); 43 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_upper, true))); 44 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_lower, false))); 45 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_lower, true))); 46 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_mixed, false))); [all …]
|
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 | 17 print "1: ". bin2hex(mb_substr($euc_jp, 10, 10,'EUC-JP')) . "\n"; 18 print "2: ". bin2hex(mb_substr($euc_jp, 0, 100,'EUC-JP')) . "\n"; 22 ($str === "") ? print "3 OK\n" : print "NG: ".bin2hex($str)."\n"; 25 ($str !== "") ? print "4 OK: ".bin2hex($str)."\n" : print "NG: ".bin2hex($str)."\n";
|
H A D | mb_strstr_basic.phpt | 25 var_dump(bin2hex(mb_strstr($string_ascii, b'd', false, 'ISO-8859-1'))); 26 var_dump(bin2hex(mb_strstr($string_ascii, b'd'))); 27 var_dump(bin2hex(mb_strstr($string_ascii, b'd', true))); 35 var_dump(bin2hex(mb_strstr($string_mb, $needle1))); 36 var_dump(bin2hex(mb_strstr($string_mb, $needle1, false, 'utf-8'))); 37 var_dump(bin2hex(mb_strstr($string_mb, $needle1, true)));
|
/PHP-7.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 | bin2hex_error.phpt | 2 Test bin2hex() function : error conditions 6 /* Prototype : string bin2hex ( string $str ) 11 echo "*** Testing bin2hex() : error conditions ***\n"; 13 echo "\n-- Testing bin2hex() function with no arguments --\n"; 14 var_dump( bin2hex() ); 18 var_dump( bin2hex("Hello World", $extra_arg) ); 23 *** Testing bin2hex() : error conditions *** 25 -- Testing bin2hex() function with no arguments -- 27 Warning: bin2hex() expects exactly 1 parameter, 0 given in %s on line %d 30 -- Testing bin2hex() function with more than expected no. of arguments -- [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 | strval_variation2.phpt | 29 echo bin2hex(strval($s0)); 31 echo bin2hex(strval($s1)); 33 echo bin2hex(strval($s2)); 35 echo bin2hex(strval($s3)); 37 echo bin2hex(strval($s4)); 39 echo bin2hex(strval($s5)); 41 echo bin2hex(strval($s6)); 43 echo bin2hex(strval($s7)); 45 echo bin2hex(strval($s8)); 47 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');
|
H A D | bin2hex_variation1.phpt | 2 Test bin2hex() function : usage variations - test values for $str argument 6 /* Prototype : string bin2hex ( string $str ) 11 echo "*** Testing bin2hex() function: with unexpected inputs for 'str' argument ***\n"; 68 // loop through with each element of the $inputs array to test bin2hex() function 72 var_dump(bin2hex($input) ); 81 *** Testing bin2hex() function: with unexpected inputs for 'str' argument *** 96 Warning: bin2hex() expects parameter 1 to be string, array given in %s on line %d 100 Warning: bin2hex() expects parameter 1 to be string, array given in %s on line %d 104 Warning: bin2hex() expects parameter 1 to be string, array given in %s on line %d 122 Warning: bin2hex() expects parameter 1 to be string, resource given in %s on line %d
|
H A D | sha1_basic.phpt | 31 var_dump(bin2hex(sha1("", true))); 32 var_dump(bin2hex(sha1("a", true))); 33 var_dump(bin2hex(sha1("abc", true))); 34 var_dump(bin2hex(sha1("message digest", true))); 35 var_dump(bin2hex(sha1("abcdefghijklmnopqrstuvwxyz", true))); 36 var_dump(bin2hex(sha1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", true))); 37 var_dump(bin2hex(sha1("1234567890123456789012345678901234567890123456789012345678901234567890123456…
|
H A D | bin2hex.phpt | 2 bin2hex() function 9 echo bin2hex($s)."\n"; 10 echo bin2hex("abc")."\n";
|
H A D | bin2hex_basic.phpt | 2 Test bin2hex() function : basic functionality 6 /* Prototype : string bin2hex ( string $str ) 11 echo "*** Testing bin2hex() : basic functionality ***\n"; 27 // loop through with each element of the $strings array to test bin2hex() function 31 var_dump(bin2hex($string)); 37 *** Testing bin2hex() : basic functionality ***
|
H A D | stripcslashes_basic.phpt | 19 var_dump(bin2hex(stripcslashes('\\a'))); 20 var_dump(bin2hex(stripcslashes('\\b'))); 21 var_dump(bin2hex(stripcslashes('\\f'))); 22 var_dump(bin2hex(stripcslashes('\\t'))); 23 var_dump(bin2hex(stripcslashes('\\v')));
|
/PHP-7.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 | 28 var_dump(bin2hex($euc_jp_string)); 30 var_dump(bin2hex(iconv('SJIS', 'EUC-JP', $sjis_string ))); 31 var_dump(bin2hex(iconv('UTF-8', 'EUC-JP', $utf8_string))); 35 var_dump(bin2hex($sjis_string)); 37 var_dump(bin2hex(iconv('EUC-JP', 'SJIS', $euc_jp_string))); 38 var_dump(bin2hex(iconv('UTF-8', 'SJIS', $utf8_string))); 42 var_dump(bin2hex($utf8_string)); 44 var_dump(bin2hex(iconv('SJIS', 'UTF-8', $sjis_string))); 45 var_dump(bin2hex(iconv('EUC-JP', 'UTF-8', $euc_jp_string)));
|
/PHP-7.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-7.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));
|