Lines Matching refs:unpack
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() );
16 echo "\n-- Testing unpack() function with more than expected no. of arguments --\n";
18 var_dump(unpack("I", pack("I", 65534), $extra_arg));
20 echo "\n-- Testing unpack() function with invalid format character --\n";
22 var_dump(unpack("G", pack("I", 65534)));
26 *** Testing unpack() : error conditions ***
28 -- Testing unpack() function with no arguments --
30 Warning: unpack() expects exactly 2 parameters, 0 given in %s on line %d
33 -- Testing unpack() function with more than expected no. of arguments --
35 Warning: unpack() expects exactly 2 parameters, 3 given in %s on line %d
38 -- Testing unpack() function with invalid format character --
40 Warning: unpack(): Invalid format type G in %s on line %d