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 #80545 (bcadd('a', 'a') and bcadd('1', 'a') doesn't throw an exception) --EXT..

Decoded Output download

--TEST--
Bug #80545 (bcadd('a', 'a') and bcadd('1', 'a') doesn't throw an exception)
--EXTENSIONS--
bcmath
--FILE--
<?php

try {
    bcadd('a', 'a');
} catch (\ValueError $e) {
    echo $e->getMessage() . PHP_EOL;
}

try {
    bcadd('1', 'a');
} catch (\ValueError $e) {
    echo $e->getMessage();
}

?>
--EXPECT--
bcadd(): Argument #1 ($num1) is not well-formed
bcadd(): Argument #2 ($num2) is not well-formed

Did this file decode correctly?

Original Code

--TEST--
Bug #80545 (bcadd('a', 'a') and bcadd('1', 'a') doesn't throw an exception)
--EXTENSIONS--
bcmath
--FILE--
<?php

try {
    bcadd('a', 'a');
} catch (\ValueError $e) {
    echo $e->getMessage() . PHP_EOL;
}

try {
    bcadd('1', 'a');
} catch (\ValueError $e) {
    echo $e->getMessage();
}

?>
--EXPECT--
bcadd(): Argument #1 ($num1) is not well-formed
bcadd(): Argument #2 ($num2) is not well-formed

Function Calls

None

Variables

None

Stats

MD5 e47e0c888af6c0109862d5186923ede7
Eval Count 0
Decode Time 101 ms