2004-01-21 03:49:15 +00:00
|
|
|
--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);
|
2004-01-21 03:58:30 +00:00
|
|
|
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);
|
2004-01-21 03:49:15 +00:00
|
|
|
|
|
|
|
?>
|
2007-06-04 01:23:07 +00:00
|
|
|
--EXPECTREGEX--
|
|
|
|
\+0200
|
|
|
|
\-0200
|
|
|
|
\+200\.000000
|
|
|
|
\-200\.000000
|
2004-01-21 03:49:15 +00:00
|
|
|
00200
|
2007-06-04 01:23:07 +00:00
|
|
|
(4294967096|18446744073709551416)
|
2004-01-21 03:58:30 +00:00
|
|
|
---
|
|
|
|
00200
|
2007-06-04 01:23:07 +00:00
|
|
|
\-0200
|
|
|
|
200\.000000
|
|
|
|
\-200\.000000
|
2004-01-21 03:58:30 +00:00
|
|
|
00200
|
2007-06-04 01:23:07 +00:00
|
|
|
(4294967096|18446744073709551416)
|