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 #48408 (crash when exception is thrown while passing function arguments) --FI..
Decoded Output download
--TEST--
Bug #48408 (crash when exception is thrown while passing function arguments)
--FILE--
<?php
class B{
public function process($x){
return $x;
}
}
class C{
public function generate($x){
throw new Exception;
}
}
$b = new B;
$c = new C;
try{
$b->process($c->generate(0));
}
catch(Exception $e){
$c->generate(0);
}
?>
--EXPECTF--
Fatal error: Uncaught Exception in %s
Stack trace:
#0 %s(%d): C->generate(0)
#1 {main}
thrown in %s
Did this file decode correctly?
Original Code
--TEST--
Bug #48408 (crash when exception is thrown while passing function arguments)
--FILE--
<?php
class B{
public function process($x){
return $x;
}
}
class C{
public function generate($x){
throw new Exception;
}
}
$b = new B;
$c = new C;
try{
$b->process($c->generate(0));
}
catch(Exception $e){
$c->generate(0);
}
?>
--EXPECTF--
Fatal error: Uncaught Exception in %s
Stack trace:
#0 %s(%d): C->generate(0)
#1 {main}
thrown in %s
Function Calls
None |
Stats
MD5 | f04963d60b5da0e31b6b42e97d80032a |
Eval Count | 0 |
Decode Time | 95 ms |