summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug26973.phpt
blob: 9de3be492911abf5403edaabc9469b9e16a42a37 (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);

?>
--EXPECTREGEX--
\+0200
\-0200
\+200\.000000
\-200\.000000
00200
(4294967096|18446744073709551416)
---
00200
\-0200
200\.000000
\-200\.000000
00200
(4294967096|18446744073709551416)