1--TEST--
2Test vsprintf() function : basic functionality - octal format
3--FILE--
4<?php
5echo "*** Testing vsprintf() : basic functionality - using octal format ***\n";
6
7// Initialise all required variables
8$format = "format";
9$format1 = "%o";
10$format2 = "%o %o";
11$format3 = "%o %o %o";
12$arg1 = array(021);
13$arg2 = array(021,0347);
14$arg3 = array(021,0347,0567);
15
16var_dump( vsprintf($format1,$arg1) );
17var_dump( vsprintf($format2,$arg2) );
18var_dump( vsprintf($format3,$arg3) );
19
20echo "Done";
21?>
22--EXPECT--
23*** Testing vsprintf() : basic functionality - using octal format ***
24string(2) "21"
25string(6) "21 347"
26string(10) "21 347 567"
27Done
28