1--TEST--
2sprintf %u With signed integer 32bit
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 4) {
6    die("skip this test is for 32bit platform only");
7}
8?>
9--FILE--
10<?php
11
12/* example#5: various examples */
13$n =  43951789;
14$u = -43951789;
15
16// notice the double %%, this prints a literal '%' character
17var_dump(sprintf("%%u = '%u'", $n)); // unsigned integer representation of a positive integer
18var_dump(sprintf("%%u = '%u'", $u)); // unsigned integer representation of a negative integer
19
20?>
21--EXPECT--
22string(15) "%u = '43951789'"
23string(17) "%u = '4251015507'"
24
25