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-- Fixed bug #69845 (ArrayObject with ARRAY_AS_PROPS broken) --FILE-- <?php for ($i ..
Decoded Output download
--TEST--
Fixed bug #69845 (ArrayObject with ARRAY_AS_PROPS broken)
--FILE--
<?php
for ($i = 0; $i<2; $i++) {
$data = new \ArrayObject(new stdClass(), ArrayObject::ARRAY_AS_PROPS);
$data->itemType = 'bulletin';
var_dump(!is_null($data['itemType']));
}
?>
--EXPECT--
bool(true)
bool(true)
Did this file decode correctly?
Original Code
--TEST--
Fixed bug #69845 (ArrayObject with ARRAY_AS_PROPS broken)
--FILE--
<?php
for ($i = 0; $i<2; $i++) {
$data = new \ArrayObject(new stdClass(), ArrayObject::ARRAY_AS_PROPS);
$data->itemType = 'bulletin';
var_dump(!is_null($data['itemType']));
}
?>
--EXPECT--
bool(true)
bool(true)
Function Calls
None |
Stats
MD5 | de3307ca7fb2b1435b24b5651799b48a |
Eval Count | 0 |
Decode Time | 85 ms |