summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug26973.phpt
blob: ef286e2c431428a4e2deb7f4b3fa6641dd4e56c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--TEST--
Bug #26973 (*printf() '+' modifier problem)
--FILE--
<?php

printf("%+05d\n", 200);
printf("%+05d\n", -200);
printf("%+05f\n", 200);
printf("%+05f\n", -200);
printf("%+05u\n", 200);
printf("%+05u\n", -200);
echo "---\n";
printf("%05d\n", 200);
printf("%05d\n", -200);
printf("%05f\n", 200);
printf("%05f\n", -200);
printf("%05u\n", 200);
printf("%05u\n", -200);

?>
--EXPECT--
+0200
-0200
+0200.000000
-0200.000000
00200
4294967096
---
00200
-0200
00200.000000
-0200.000000
00200
4294967096