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 #54281 (Crash in spl_recursive_it_rewind_ex) --FILE-- <?php class RecursiveA..
Decoded Output download
--TEST--
Bug #54281 (Crash in spl_recursive_it_rewind_ex)
--FILE--
<?php
class RecursiveArrayIteratorIterator extends RecursiveIteratorIterator {
function __construct($it, $max_depth) { }
}
$it = new RecursiveArrayIteratorIterator(new RecursiveArrayIterator(array()), 2);
foreach($it as $k=>$v) { }
?>
--EXPECTF--
Fatal error: Uncaught Error: The object is in an invalid state as the parent constructor was not called in %s:%d
Stack trace:
#0 %s%ebug54281.php(8): RecursiveIteratorIterator->rewind()
#1 {main}
thrown in %s%ebug54281.php on line 8
Did this file decode correctly?
Original Code
--TEST--
Bug #54281 (Crash in spl_recursive_it_rewind_ex)
--FILE--
<?php
class RecursiveArrayIteratorIterator extends RecursiveIteratorIterator {
function __construct($it, $max_depth) { }
}
$it = new RecursiveArrayIteratorIterator(new RecursiveArrayIterator(array()), 2);
foreach($it as $k=>$v) { }
?>
--EXPECTF--
Fatal error: Uncaught Error: The object is in an invalid state as the parent constructor was not called in %s:%d
Stack trace:
#0 %s%ebug54281.php(8): RecursiveIteratorIterator->rewind()
#1 {main}
thrown in %s%ebug54281.php on line 8
Function Calls
None |
Stats
MD5 | 0c84b1293e9ee2a6decc8020c7b4b6f1 |
Eval Count | 0 |
Decode Time | 91 ms |