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-- SPL: RecursiveIteratorIterator::getSubIterator() returns iterator passed in const..
Decoded Output download
--TEST--
SPL: RecursiveIteratorIterator::getSubIterator() returns iterator passed in constructor
--CREDITS--
Matt Raines [email protected]
#testfest London 2009-05-09
--FILE--
<?php
$sample_array = array(1, 2, array(3, 4));
$sub_iterator = new RecursiveArrayIterator($sample_array);
$not_sub_iterator = new RecursiveArrayIterator($sample_array);
$iterator = new RecursiveIteratorIterator($sub_iterator);
var_dump($iterator->getSubIterator() === $sub_iterator);
var_dump($iterator->getSubIterator() === $not_sub_iterator);
?>
--EXPECT--
bool(true)
bool(false)
Did this file decode correctly?
Original Code
--TEST--
SPL: RecursiveIteratorIterator::getSubIterator() returns iterator passed in constructor
--CREDITS--
Matt Raines [email protected]
#testfest London 2009-05-09
--FILE--
<?php
$sample_array = array(1, 2, array(3, 4));
$sub_iterator = new RecursiveArrayIterator($sample_array);
$not_sub_iterator = new RecursiveArrayIterator($sample_array);
$iterator = new RecursiveIteratorIterator($sub_iterator);
var_dump($iterator->getSubIterator() === $sub_iterator);
var_dump($iterator->getSubIterator() === $not_sub_iterator);
?>
--EXPECT--
bool(true)
bool(false)
Function Calls
None |
Stats
MD5 | d9f70588400b97d97de5817ee5bf2ea2 |
Eval Count | 0 |
Decode Time | 103 ms |