1--TEST--
2Test vprintf() function : basic functionality - octal format
3--FILE--
4<?php
5/* Prototype  : string vprintf(string $format , array $args)
6 * Description: Output a formatted string
7 * Source code: ext/standard/formatted_print.c
8*/
9
10echo "*** Testing vprintf() : basic functionality - using octal format ***\n";
11
12// Initialise all required variables
13$format = "format";
14$format1 = "%o";
15$format2 = "%o %o";
16$format3 = "%o %o %o";
17$arg1 = array(021);
18$arg2 = array(021,0347);
19$arg3 = array(021,0347,0567);
20
21$result = vprintf($format1,$arg1);
22echo "\n";
23var_dump($result);
24
25$result = vprintf($format2,$arg2);
26echo "\n";
27var_dump($result);
28
29$result = vprintf($format3,$arg3);
30echo "\n";
31var_dump($result);
32
33?>
34===DONE===
35--EXPECT--
36*** Testing vprintf() : basic functionality - using octal format ***
3721
38int(2)
3921 347
40int(6)
4121 347 567
42int(10)
43===DONE===
44