mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
55b5b89ef7
# just made these EXPECTREGEX expressions, if there's a prefered way to comply with both 32/64 bit let me know.
35 lines
556 B
PHP
35 lines
556 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);
|
|
|
|
?>
|
|
--EXPECTREGEX--
|
|
\+0200
|
|
\-0200
|
|
\+200\.000000
|
|
\-200\.000000
|
|
00200
|
|
(4294967096|18446744073709551416)
|
|
---
|
|
00200
|
|
\-0200
|
|
200\.000000
|
|
\-200\.000000
|
|
00200
|
|
(4294967096|18446744073709551416)
|