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-- Invalid comparison with a GMP object --EXTENSIONS-- gmp --FILE-- <?php try { ..
Decoded Output download
--TEST--
Invalid comparison with a GMP object
--EXTENSIONS--
gmp
--FILE--
<?php
try {
var_dump("hapfegfbu" > gmp_init(0));
} catch (\Error $e) {
echo $e::class, ': ', $e->getMessage(), \PHP_EOL;
}
try {
var_dump((new DateTime()) > gmp_init(0));
} catch (\Error $e) {
echo $e::class, ': ', $e->getMessage(), \PHP_EOL;
}
?>
--EXPECT--
ValueError: Number is not an integer string
TypeError: Number must be of type GMP|string|int, DateTime given
Did this file decode correctly?
Original Code
--TEST--
Invalid comparison with a GMP object
--EXTENSIONS--
gmp
--FILE--
<?php
try {
var_dump("hapfegfbu" > gmp_init(0));
} catch (\Error $e) {
echo $e::class, ': ', $e->getMessage(), \PHP_EOL;
}
try {
var_dump((new DateTime()) > gmp_init(0));
} catch (\Error $e) {
echo $e::class, ': ', $e->getMessage(), \PHP_EOL;
}
?>
--EXPECT--
ValueError: Number is not an integer string
TypeError: Number must be of type GMP|string|int, DateTime given
Function Calls
None |
Stats
MD5 | 832b606622cb7526ace377e53920f0d7 |
Eval Count | 0 |
Decode Time | 77 ms |