1--TEST--
2Test vprintf() function : basic functionality - hexadecimal format
3--FILE--
4<?php
5echo "*** Testing vprintf() : basic functionality - using hexadecimal format ***\n";
6
7// Initialising different format strings
8$format = "format";
9$format1 = "%x";
10$format2 = "%x %x";
11$format3 = "%x %x %x";
12
13$format11 = "%X";
14$format22 = "%X %X";
15$format33 = "%X %X %X";
16
17$arg1 = array(11);
18$arg2 = array(11,132);
19$arg3 = array(11,132,177);
20
21$result = vprintf($format1,$arg1);
22echo "\n";
23var_dump($result);
24$result = vprintf($format11,$arg1);
25echo "\n";
26var_dump($result);
27
28$result = vprintf($format2,$arg2);
29echo "\n";
30var_dump($result);
31$result = vprintf($format22,$arg2);
32echo "\n";
33var_dump($result);
34
35$result = vprintf($format3,$arg3);echo "\n";
36var_dump($result);
37$result = vprintf($format33,$arg3);
38echo "\n";
39var_dump($result);
40
41?>
42--EXPECT--
43*** Testing vprintf() : basic functionality - using hexadecimal format ***
44b
45int(1)
46B
47int(1)
48b 84
49int(4)
50B 84
51int(4)
52b 84 b1
53int(7)
54B 84 B1
55int(7)
56