Home
last modified time | relevance | path

Searched refs:unpack (Results 1 – 25 of 28) sorted by relevance

12

/PHP-5.3/ext/standard/tests/strings/
H A Dpack.phpt2 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 Dunpack_error.phpt2 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("Z", 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 Dbug35817.phpt2 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 Dunpack.phpt5 var_dump(unpack("-2222", 1));
9 Warning: unpack(): Invalid format type - in %sunpack.php on line %d
H A Dbug38770.phpt2 Bug #38770 (unpack() broken with longs on 64 bit machines)
11 print_r(unpack($v, pack($v, -30000)));
H A Dbug36148.phpt2 Bug #36148 (unpack("H*hex", $data) is adding an extra character to the end of the string)
8 $b = unpack("H*", $a);
H A Dbug61764.phpt10 print_r(unpack('I', pack('L', -30000)));
H A Dbug53021.phpt5 var_dump(unpack("H*",html_entity_decode("é", ENT_QUOTES, "ISO-8859-1")));
H A Dhtmlentities17.phpt23 list(,$result) = unpack('H6', html_entity_decode($test[1], ENT_QUOTES, 'UTF-8'));
/PHP-5.3/ext/phar/
H A Dshortarc.php117 $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.3/ext/standard/tests/array/
H A Dbug24766.phpt2 Bug #24766 (strange result array from unpack)
8 $a = unpack('C2', "\0224V");
/PHP-5.3/ext/mbstring/tests/
H A Dbug54494.phpt25 $t = unpack("H*",mb_substr($string, $i, 1, $mode));
41 $t = unpack("H*",mb_substr($string, $i, 1, $mode));
H A Dbug30549.phpt16 foreach (unpack('Nc', $ustr) as $unic);
/PHP-5.3/ext/standard/
H A Dpack.h26 PHP_FUNCTION(unpack);
H A Dpack.c519 PHP_FUNCTION(unpack) in PHP_FUNCTION() argument
/PHP-5.3/ext/standard/tests/serialize/
H A Dprecision.phpt27 $num = unpack("d", pack("H*", $ns)); $num = reset($num);
30 $repr = unpack("H*", pack("d", $num2)); $repr = reset($repr);
/PHP-5.3/ext/phar/tests/
H A Dphar_setdefaultstub.phpt173 $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 Dphar_createdefaultstub.phpt153 $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.3/ext/phar/tests/files/
H A Dinclude_path2.phar117 $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)));
H A Dnophar.phar117 $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)));
H A Dopenssl.phar117 $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)));
/PHP-5.3/ext/phar/tests/cache_list/files/
H A Dnophar.phar117 $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)));
H A Dopenssl.phar117 $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)));
/PHP-5.3/ext/iconv/tests/
H A Diconv002.phpt21 $s = unpack("V*", iconv("ascii","UCS-4LE", "abcd"));
/PHP-5.3/win32/build/
H A Dmkdist.php178 …$hdr = unpack("a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1typeflag/a100link/a6m…

Completed in 28 milliseconds

12