/PHP-5.6/ext/standard/tests/strings/ |
H A D | pack.phpt | 2 Generic pack()/unpack() tests 16 print_r(unpack("C", pack("C", -127))); 17 print_r(unpack("C", pack("C", 127))); 18 print_r(unpack("C", pack("C", 255))); 19 print_r(unpack("C", pack("C", -129))); 21 print_r(unpack("H", pack("H", 0x04))); 24 print_r(unpack("I", pack("I", 0))); 31 print_r(unpack("L", pack("L", 0))); 37 print_r(unpack("N", pack("N", 0))); 45 print_r(unpack("S", pack("S", 0))); [all …]
|
H A D | pack64.phpt | 2 64bit pack()/unpack() tests 11 print_r(unpack("Q", pack("Q", 0xfffffffffffe))); 12 print_r(unpack("Q", pack("Q", 0))); 14 print_r(unpack("Q", pack("Q", -1))); 17 print_r(unpack("J", pack("J", 0xfffffffffffe))); 18 print_r(unpack("J", pack("J", 0))); 20 print_r(unpack("J", pack("J", -1))); 24 print_r(unpack("P", pack("P", 0))); 26 print_r(unpack("P", pack("P", -1))); 30 print_r(unpack("q", pack("q", 0))); [all …]
|
H A D | unpack_error.phpt | 2 Test unpack() function : error conditions 6 /* Prototype : array unpack ( string $format , string $data ) 11 echo "*** Testing unpack() : error conditions ***\n"; 13 echo "\n-- Testing unpack() function with no arguments --\n"; 14 var_dump( unpack() ); 18 var_dump(unpack("I", pack("I", 65534), $extra_arg)); 22 var_dump(unpack("G", pack("I", 65534))); 26 *** Testing unpack() : error conditions *** 28 -- Testing unpack() function with no arguments -- 38 -- Testing unpack() function with invalid format character -- [all …]
|
H A D | pack_Z.phpt | 2 pack()/unpack(): "Z" format 11 unpack("Z*", "foo\0\rbar\0 \t\r\n"), 12 unpack("Z9", "foo\0\rbar\0 \t\r\n"), 13 unpack("Z2", "\0"), 14 unpack("Z2", "\0\0"), 15 unpack("Z2", "A\0"), 16 unpack("Z2", "AB\0"), 17 unpack("Z2", "ABC") 20 Warning: unpack(): Type Z: not enough input, need 2, have 1 in %s on line %d
|
H A D | bug61038.phpt | 2 Bug #61038: unpack("a5", "str\0\0") does not work as expected 5 var_dump(unpack("a4", "str\0\0")); 6 var_dump(unpack("a5", "str\0\0")); 7 var_dump(unpack("a6", "str\0\0")); 8 var_dump(unpack("a*", "str\0\0")); 20 Warning: unpack(): Type a: not enough input, need 6, have 5 in %s on line %d
|
H A D | pack64_32.phpt | 2 64bit pack()/unpack() tests 16 var_dump(unpack("Q", '')); 17 var_dump(unpack("J", '')); 18 var_dump(unpack("P", '')); 19 var_dump(unpack("q", '')); 34 Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 37 Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 40 Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 43 Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d
|
H A D | bug35817.phpt | 2 Bug #35817 (unpack() does not decode odd number of hexadecimal values) 6 $b = unpack("H3", $a); 10 $b = unpack("H2", $a); 14 $b = unpack("H", $a);
|
H A D | bug69522.phpt | 2 Bug #69522 (heap buffer overflow in unpack()) 6 $b = unpack('h2147483648', $a); 10 Warning: unpack(): Type h: integer overflow in %s on line %d
|
H A D | pack_A.phpt | 2 pack()/unpack(): "A" modifier 9 unpack("A*", "foo\0\rbar\0 \t\r\n"), 10 unpack("A4", "foo\0\rbar\0 \t\r\n")
|
H A D | unpack.phpt | 5 var_dump(unpack("-2222", 1)); 9 Warning: unpack(): Invalid format type - in %sunpack.php on line %d
|
H A D | bug38770.phpt | 2 Bug #38770 (unpack() broken with longs on 64 bit machines) 11 print_r(unpack($v, pack($v, -30000)));
|
H A D | bug36148.phpt | 2 Bug #36148 (unpack("H*hex", $data) is adding an extra character to the end of the string) 8 $b = unpack("H*", $a);
|
H A D | bug61764.phpt | 10 print_r(unpack('I', pack('L', -30000)));
|
/PHP-5.6/Zend/tests/arg_unpack/ |
H A D | string_keys.phpt | 15 string(36) "Cannot unpack array with string keys" 18 string(42) "Cannot unpack Traversable with string keys"
|
/PHP-5.6/ext/phar/ |
H A D | shortarc.php | 117 $L = unpack('V', $a = (binary)fread($fp, 4)); 215 $info = unpack('V', substr($m, 0, 4)); 217 $l = unpack('V', substr($m, 10, 4)); 219 $s = unpack('V', substr($m, 0, 4)); 226 $len = unpack('V', substr($m, $start, 4)); 234 … $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));
|
/PHP-5.6/ext/standard/tests/array/ |
H A D | bug24766.phpt | 2 Bug #24766 (strange result array from unpack) 8 $a = unpack('C2', "\0224V");
|
/PHP-5.6/ext/mbstring/tests/ |
H A D | bug54494.phpt | 25 $t = unpack("H*",mb_substr($string, $i, 1, $mode)); 41 $t = unpack("H*",mb_substr($string, $i, 1, $mode));
|
/PHP-5.6/ext/standard/ |
H A D | pack.h | 26 PHP_FUNCTION(unpack);
|
/PHP-5.6/ext/standard/tests/serialize/ |
H A D | precision.phpt | 27 $num = unpack("d", pack("H*", $ns)); $num = reset($num); 30 $repr = unpack("H*", pack("d", $num2)); $repr = reset($repr);
|
/PHP-5.6/ext/intl/tests/ |
H A D | bug72241.phpt | 10 echo unpack('H*', $out)[1] . PHP_EOL;
|
/PHP-5.6/ext/phar/tests/ |
H A D | phar_setdefaultstub.phpt | 173 $L = unpack('V', $a = (binary)fread($fp, 4)); 271 $info = unpack('V', substr($m, 0, 4)); 272 $l = unpack('V', substr($m, 10, 4)); 274 $s = unpack('V', substr($m, 0, 4)); 280 $len = unpack('V', substr($m, $start, 4)); 566 $info = unpack('V', substr($m, 0, 4)); 567 $l = unpack('V', substr($m, 10, 4)); 569 $s = unpack('V', substr($m, 0, 4)); 861 $info = unpack('V', substr($m, 0, 4)); 862 $l = unpack('V', substr($m, 10, 4)); [all …]
|
H A D | phar_createdefaultstub.phpt | 153 $L = unpack('V', $a = (binary)fread($fp, 4)); 251 $info = unpack('V', substr($m, 0, 4)); 252 $l = unpack('V', substr($m, 10, 4)); 254 $s = unpack('V', substr($m, 0, 4)); 260 $len = unpack('V', substr($m, $start, 4)); 545 $info = unpack('V', substr($m, 0, 4)); 546 $l = unpack('V', substr($m, 10, 4)); 548 $s = unpack('V', substr($m, 0, 4)); 847 $info = unpack('V', substr($m, 0, 4)); 848 $l = unpack('V', substr($m, 10, 4)); [all …]
|
/PHP-5.6/Zend/tests/generators/ |
H A D | bug66041.phpt | 2 Bug #66041: list() fails to unpack yielded ArrayAccess object
|
/PHP-5.6/ext/gd/tests/ |
H A D | bug73159.phpt | 15 $header = unpack('@12/nformat', $buffer);
|
/PHP-5.6/ext/phar/tests/cache_list/files/ |
H A D | openssl.phar | 117 $L = unpack('V', $a = (binary)fread($fp, 4)); 215 $info = unpack('V', substr($m, 0, 4)); 216 $l = unpack('V', substr($m, 10, 4)); 218 $s = unpack('V', substr($m, 0, 4)); 224 $len = unpack('V', substr($m, $start, 4)); 228 $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));
|