Home
last modified time | relevance | path

Searched refs:hex (Results 1 – 25 of 106) sorted by relevance

12345

/php-src/tests/lang/integer_literals/
H A Dhexadecimal_32bit.phpt12 var_dump($hex);
17 var_dump($hex);
20 $hex = 0x1C;
21 var_dump($hex);
24 $hex = 0x1_C;
25 var_dump($hex);
28 $hex = 0x0_01C;
29 var_dump($hex);
30 $hex = 0x0_1C;
48 $hex = 0X1C;
[all …]
H A Dhexadecimal_64bit.phpt12 var_dump($hex);
17 var_dump($hex);
20 $hex = 0x1C;
21 var_dump($hex);
24 $hex = 0x1_C;
25 var_dump($hex);
28 $hex = 0x0_01C;
29 var_dump($hex);
30 $hex = 0x0_1C;
49 $hex = 0X1C;
[all …]
/php-src/ext/sodium/tests/
H A Dcrypto_hex.phpt8 $hex = sodium_bin2hex($bin);
10 var_dump(strcasecmp($hex, $phphex));
12 $bin2 = sodium_hex2bin($hex);
15 $bin2 = sodium_hex2bin('[' . $hex .']', '[]');
/php-src/ext/mbstring/tests/
H A Dmb_encode_numericentity.phpt11 echo "1 (hex): " . mb_encode_numericentity($str1, $convmap, "UTF-8", true) . "\n";
30 echo "7 (hex): " . mb_encode_numericentity('föo', $convmap, "UTF-8", true) . "\n";
35 echo "8 (hex): " . mb_encode_numericentity("\x01\x02\x03", $convmap, "UTF-8", true) . "\n";
40 echo "9 (hex): " . mb_encode_numericentity("\x01\x02\x03", $convmap, "UTF-8", true) . "\n";
45 echo "10 (hex): " . mb_encode_numericentity('föo', $convmap, "UTF-8", true) . "\n";
65 6 (hex): �
67 7 (hex): föo
69 8 (hex): ϩϪϫ
71 9 (hex): ���
73 10 (hex): ""#
[all …]
H A Dmb_decode_numericentity.phpt52 // Try with hex, not just decimal entities
84 test("8 digits for hex entity", "A", "A", [0, 0xFFFF, 0, 0xFFFF], 'ASCII');
85 test("More than 8 digits for hex entity", "Ł", "Ł", [0, 0xFFFF, 0, 0xFFFF],…
100 test("Successive hex entities", "&#x322", "22", [0, 0xFFFF, 0, 0xFFFF], 'ASCII');
107 test("Starting entity immediately after invalid hex entity", "&#x0A", "&#x0A", [0x1, 0xFFFF, 0,…
116 // First try invalid decimal/hex entities
121 // Now try valid decimal/hex entities
166 8 digits for hex entity: string(12) "A" => string(1) "A" (Good)
167 More than 8 digits for hex entity: string(13) "Ł" => string(13) "Ł" (Good)
174 Successive hex entities: string(11) "&#x322" => string(2) "22" (Good)
[all …]
H A Dbug31911.phpt2 Bug #31911 (mb_decode_mimeheader() is case-sensitive to hex escapes)
/php-src/ext/intl/tests/
H A Dtransliterator_clone.phpt10 $t = Transliterator::create("hex-any");
19 hex-any: a 万
20 hex-any: a 万
/php-src/ext/opcache/tests/jit/
H A Dbug81226.phpt14 $hex = '10000000000000041';
19 for ($j = 0, $len = strlen($hex); $j < $len; ++$j) {
21 $characterReferenceCode += ord($hex[$j]) - 0x0030;
/php-src/ext/ldap/tests/
H A Dldap_get_option_controls.phpt21 $hex = '';
24 $hex .= '02'.sprintf("%'.02x%s", strlen($str)/2, $str);
26 $hex .= '04'.sprintf("%'.02x", strlen($cookie)).bin2hex($cookie);
27 return hex2bin('30'.sprintf("%'.02x", strlen($hex)/2).$hex);
H A Dldap_exop.phpt19 $hex = '';
21 $hex .= '80'.sprintf("%'.02x", strlen($user)).bin2hex($user);
24 $hex .= '81'.sprintf("%'.02x", strlen($oldpw)).bin2hex($oldpw);
27 $hex .= '82'.sprintf("%'.02x", strlen($newpw)).bin2hex($newpw);
29 return hex2bin('30'.sprintf("%'.02x", strlen($hex)/2).$hex);
/php-src/ext/curl/
H A Dsync-constants.php305 $hex = '0x';
324 $hex .= $value;
327 return $hex;
/php-src/ext/standard/tests/array/sort/
H A Dnatcasesort_variation5.phpt2 Test natcasesort() function : usage variations - different hex values
6 * Pass an array of different hex values to test how natcasesort() re-orders it
/php-src/ext/calendar/tests/
H A Djdtojewish_hebrew.phpt13 $hex = bin2hex($hebrew);
14 echo "$hex\n";
/php-src/ext/pgsql/tests/
H A D18pg_escape_bytea_hex.phpt2 PostgreSQL pg_escape_bytea() functions (hex format)
20 @pg_query($db, "SET bytea_output = 'hex'");
/php-src/Zend/tests/
H A Dbug78454_1.phpt2 Invalid consecutive numeric separators after hex literal
H A Dbug77993.phpt2 Bug #77993 (Wrong parse error for invalid hex literal on Windows)
/php-src/ext/standard/tests/general_functions/
H A D001.phpt23 echo("sprintf octal and hex test: ");
59 sprintf octal and hex test: passed
/php-src/ext/hash/tests/
H A Dbug64745.phpt2 Bug #64745 (hash_pbkdf2() truncates data when using default length and hex output)
/php-src/ext/standard/
H A Dquot_print.c144 const char *hex = "0123456789ABCDEF"; in php_quot_print_encode() local
168 *d++ = hex[c >> 4]; in php_quot_print_encode()
169 *d++ = hex[c & 0xf]; in php_quot_print_encode()
/php-src/ext/filter/tests/
H A Dbug80584.phpt2 Bug #80584: "0x" and "0X" are considered valid hex numbers by filter_var()
/php-src/ext/iconv/tests/
H A Dbug53304.phpt2 Bug #53304 (quot_print_decode does not handle lower-case hex digits)
/php-src/ext/json/tests/
H A Dpass001.phpt35 \"hex\": \"\\u0123\\u4567\\u89AB\\uCDEF\\uabcd\\uef4A\",
118 "hex": "\u0123\u4567\u89AB\uCDEF\uabcd\uef4A",
211 ["hex"]=>
349 ["hex"]=>
426 …TUVWYZ","digit":"0123456789","special":"`1~!@#$%^&*()_+-={':[,]}|;.<\/>?","hex":"\u0123\u4567\u89a…
428 …TUVWYZ","digit":"0123456789","special":"`1~!@#$%^&*()_+-={':[,]}|;.<\/>?","hex":"\u0123\u4567\u89a…
491 ["hex"]=>
629 ["hex"]=>
H A Dpass001.1.phpt41 \"hex\": \"\\u0123\\u4567\\u89AB\\uCDEF\\uabcd\\uef4A\",
129 "hex": "\u0123\u4567\u89AB\uCDEF\uabcd\uef4A",
228 ["hex"]=>
409 ["hex"]=>
527 …TUVWYZ","digit":"0123456789","special":"`1~!@#$%^&*()_+-={':[,]}|;.<\/>?","hex":"\u0123\u4567\u89a…
529 …TUVWYZ","digit":"0123456789","special":"`1~!@#$%^&*()_+-={':[,]}|;.<\/>?","hex":"\u0123\u4567\u89a…
594 ["hex"]=>
775 ["hex"]=>
/php-src/ext/standard/tests/strings/
H A Dbug36148.phpt2 Bug #36148 (unpack("H*hex", $data) is adding an extra character to the end of the string)
H A Dgh15613.phpt2 GH-15613 overflow on hex strings repeater value

Completed in 26 milliseconds

12345