Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #26973 (*printf() '+' modifier problem) --FILE-- <?php printf("%+05d\n", 200..

Decoded Output download

--TEST--
Bug #26973 (*printf() '+' modifier problem)
--FILE--
<?php

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

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

Did this file decode correctly?

Original Code

--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)

Function Calls

printf 1

Variables

None

Stats

MD5 d12cf297266a07d628c7c7a7ef53f18d
Eval Count 0
Decode Time 106 ms