mirror of
https://github.com/php/php-src.git
synced 2024-10-10 11:12:08 +00:00
35 lines
500 B
PHP
35 lines
500 B
PHP
--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
|