1--TEST-- 2Test vprintf() 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 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?> 33--EXPECT-- 34*** Testing vprintf() : basic functionality - using unsigned format *** 354294966185 36int(10) 374294966185 4293732729 38int(21) 394294966185 4293732729 4292621864 40int(32) 41