/php-src/ext/standard/tests/strings/ |
H A D | pack_float.phpt | 95 unpack('g', hex2bin('0000803f')), 96 unpack('g', hex2bin('ca1b0e5a')), 97 unpack('g', hex2bin('285b173f')), 98 unpack('g', hex2bin('aa542b5f')), 99 unpack('g', hex2bin('000080bf')), 100 unpack('g', hex2bin('ca1b0eda')), 101 unpack('g', hex2bin('285b17bf')), 102 unpack('g', hex2bin('aa542bdf')), 105 unpack('G', hex2bin('3f800000')), 106 unpack('G', hex2bin('5a0e1bca')), [all …]
|
H A D | hex2bin_basic.phpt | 2 hex2bin(); function test 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 | hex2bin_error.phpt | 2 hex2bin(); function test 7 var_dump(hex2bin('AH')); 8 var_dump(hex2bin('HA')); 11 Warning: hex2bin(): Input string must be hexadecimal string in %s on line %d 14 Warning: hex2bin(): Input string must be hexadecimal string in %s on line %d
|
H A D | bug61660.phpt | 2 Bug #61660: bin2hex(hex2bin($data)) != $data 6 var_dump(hex2bin('123')); 10 Warning: hex2bin(): Hexadecimal input string must have an even length in %s on line %d
|
/php-src/ext/openssl/tests/ |
H A D | openssl_pkey_new_basic.phpt | 40 'n' => hex2bin($nhex), 41 'e' => hex2bin($ehex), 42 'd' => hex2bin($dhex), 43 'p' => hex2bin($phex), 44 'q' => hex2bin($qhex), 45 'dmp1' => hex2bin($dphex), 46 'dmq1' => hex2bin($dqhex), 47 'iqmp' => hex2bin($qinvhex), 78 'p' => hex2bin($phex), 79 'q' => hex2bin($qhex), [all …]
|
H A D | ecc_custom_params.phpt | 28 $d = hex2bin('8D0AC65AAEA0D6B96254C65817D4A143A9E7A03876F1A37D'); 29 $x = hex2bin('98E07AAD50C31F9189EBE6B8B5C70E5DEE59D7A8BC344CC6'); 30 $y = hex2bin('6109D3D96E52D0867B9D05D72D07BE5876A3D973E0E96792'); 31 $p = hex2bin('BDB6F4FE3E8B1D9E0DA8C0D46F4C318CEFE4AFE3B6B8551F'); 32 $a = hex2bin('BB8E5E8FBC115E139FE6A814FE48AAA6F0ADA1AA5DF91985'); 33 $b = hex2bin('1854BEBDC31B21B7AEFC80AB0ECD10D5B1B3308E6DBF11C1'); 34 $g_x = hex2bin('4AD5F7048DE709AD51236DE65E4D4B482C836DC6E4106640'); 35 $g_y = hex2bin('02BB3A02D4AAADACAE24817A4CA3A1B014B5270432DB27D2'); 36 $order = hex2bin('BDB6F4FE3E8B1D9E0DA8C0D40FC962195DFAE76F56564677');
|
H A D | ecc_sm2.phpt | 40 $p = hex2bin('FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF'); 41 $a = hex2bin('FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC'); 42 $b = hex2bin('28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93'); 43 $g_x = hex2bin('32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7'); 44 $g_y = hex2bin('BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0'); 45 $order = hex2bin('FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123');
|
H A D | openssl_dh_compute_key.phpt | 25 $publicKey = hex2bin("29ECC536A85A4AFAD7D63E50545C68CE44A834396886E9A7BAC27E3A08A14C05259BA6E9940FD…
|
H A D | bug55259.phpt | 15 $dh = openssl_pkey_new(array('dh'=> array( 'p' => hex2bin($phex), 'g' => '2')));
|
H A D | openssl_csr_get_public_key_basic.phpt | 18 'dh'=> array('p' => hex2bin($phex), 'g' => '2'))
|
H A D | openssl_csr_get_subject_basic.phpt | 18 'dh'=> array('p' => hex2bin($phex), 'g' => '2'))
|
H A D | openssl_csr_export_to_file_basic.phpt | 20 'dh'=> array('p' => hex2bin($phex), 'g' => '2'))
|
/php-src/ext/mbstring/tests/ |
H A D | mb_ucfirst_lcfirst.phpt | 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"))); /* ω */ 70 var_dump(bin2hex(mb_ucfirst(hex2bin("a4a2a4a2"), "EUC-JP"))); /* あ */
|
H A D | gh10648.phpt | 26 var_dump(mb_check_encoding(hex2bin($case), 'JIS')); 27 echo mb_convert_encoding(hex2bin($case), 'UTF-8', 'JIS'). PHP_EOL; 30 var_dump(mb_check_encoding(hex2bin($case), 'ISO-2022-JP')); 31 echo mb_convert_encoding(hex2bin($case), 'UTF-8', 'ISO-2022-JP'). PHP_EOL;
|
H A D | bug78559.phpt | 12 $str = hex2bin($str);
|
H A D | mb_detect_encoding.phpt | 122 $win1252text = hex2bin("2320546869732066696c6520636f6e7461696e732057696e646f77732d3132353220656e636… 125 $utf8text = hex2bin("2320546869732066696c6520636f6e7461696e73205554462d3820656e636f6465642064617461…
|
/php-src/ext/zlib/tests/ |
H A D | deflate_add_buffer_full.phpt | 22 …hex2bin("255044462d312e320a25c7ec8fa20a362030206f626a0a3c3c2f4c656e6774682037203020522f46696c74657… 30 …hex2bin("65616d0a789c7d53c16ed43010bde7c037f85824766a7bc6767c2ca8a00a016a1b2edcb2dbecaed1266937d98… 38 …hex2bin("b3be777df5525d3f90384cd58b50a9945fbb5e7c6cb8c89fca8156c688665f2de794504a81f75658a7c1d54a3…
|
/php-src/ext/gd/tests/ |
H A D | bug75111.phpt | 8 $str = hex2bin("424D3603000000000000"); 13 $str .= hex2bin("01001800000000000000000000000000000000000000000000000000");
|
H A D | bug77973.phpt | 11 $contents = hex2bin("23646566696e6520776964746820320a23646566696e652068656967687420320a737461746963…
|
/php-src/ext/fileinfo/tests/ |
H A D | bug81723.phpt | 7 $data = hex2bin("00018a7570001097db97979897977d87979797000092001f0051000000000000000000ffff7fff0000…
|
/php-src/ext/pcre/tests/ |
H A D | bug78338.phpt | 7 $string = hex2bin('2f5c583f3d3f223f3536ff3636ffffffff36a8a8a83636367a7a7a7a3d2aff2f0a');
|
/php-src/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_prepare_emulated_binary.phpt | 23 $statement->bindValue(1, hex2bin($content), PDO::PARAM_LOB); 32 $statement2->bindValue(1, hex2bin($content), PDO::PARAM_LOB);
|
/php-src/ext/ldap/tests/ |
H A D | ldap_exop.phpt | 29 return hex2bin('30'.sprintf("%'.02x", strlen($hex)/2).$hex); 35 return hex2bin(substr(bin2hex($retdata), 4*2));
|
H A D | ldap_get_option_controls.phpt | 27 return hex2bin('30'.sprintf("%'.02x", strlen($hex)/2).$hex);
|
/php-src/ext/gmp/tests/ |
H A D | gmp_import.phpt | 35 $gmp = gmp_import(hex2bin($test[3]), $test[1], $test[2]);
|