1--TEST--
2Test vprintf() function : basic functionality - unsigned format
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
6?>
7--FILE--
8<?php
9echo "*** Testing vprintf() : basic functionality - using unsigned format ***\n";
10
11// Initialise all required variables
12$format = "format";
13$format1 = "%u";
14$format2 = "%u %u";
15$format3 = "%u %u %u";
16$arg1 = array(-1111);
17$arg2 = array(-1111,-1234567);
18$arg3 = array(-1111,-1234567,-2345432);
19
20$result = vprintf($format1,$arg1);
21echo "\n";
22var_dump($result);
23
24$result = vprintf($format2,$arg2);
25echo "\n";
26var_dump($result);
27
28$result = vprintf($format3,$arg3);
29echo "\n";
30var_dump($result);
31?>
32--EXPECT--
33*** Testing vprintf() : basic functionality - using unsigned format ***
3418446744073709550505
35int(20)
3618446744073709550505 18446744073708317049
37int(41)
3818446744073709550505 18446744073708317049 18446744073707206184
39int(62)
40