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: ArrayObject::getFlags() - ensure flags are passed on to nested array objects..
Decoded Output download
--TEST--
SPL: ArrayObject::getFlags() - ensure flags are passed on to nested array objects and iterators.
--FILE--
<?php
$ao = new ArrayObject(array(), ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS);
var_dump($ao->getFlags());
$ao2 = new ArrayObject($ao);
var_dump($ao2->getFlags());
var_dump($ao2->getIterator()->getFlags());
$ai = new ArrayIterator($ao);
var_dump($ai->getFlags());
$ao2 = new ArrayObject($ao, 0);
var_dump($ao2->getFlags());
?>
--EXPECT--
int(3)
int(3)
int(3)
int(3)
int(0)
Did this file decode correctly?
Original Code
--TEST--
SPL: ArrayObject::getFlags() - ensure flags are passed on to nested array objects and iterators.
--FILE--
<?php
$ao = new ArrayObject(array(), ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS);
var_dump($ao->getFlags());
$ao2 = new ArrayObject($ao);
var_dump($ao2->getFlags());
var_dump($ao2->getIterator()->getFlags());
$ai = new ArrayIterator($ao);
var_dump($ai->getFlags());
$ao2 = new ArrayObject($ao, 0);
var_dump($ao2->getFlags());
?>
--EXPECT--
int(3)
int(3)
int(3)
int(3)
int(0)
Function Calls
None |
Stats
MD5 | dcddf9a67f2f9b9894c027d48e15fa1f |
Eval Count | 0 |
Decode Time | 83 ms |