1--TEST--
2Test vsprintf() function : basic functionality - unsigned format
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
6?>
7--FILE--
8<?php
9echo "*** Testing vsprintf() : 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
20var_dump( vsprintf($format1,$arg1) );
21var_dump( vsprintf($format2,$arg2) );
22var_dump( vsprintf($format3,$arg3) );
23
24echo "Done";
25?>
26--EXPECT--
27*** Testing vsprintf() : basic functionality - using unsigned format ***
28string(10) "4294966185"
29string(21) "4294966185 4293732729"
30string(32) "4294966185 4293732729 4292621864"
31Done
32