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-- Reflection Bug #31651 (ReflectionClass::getDefaultProperties segfaults with array..
Decoded Output download
--TEST--
Reflection Bug #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.)
--FILE--
<?php
class Test
{
public $a = array('a' => 1);
}
$ref = new ReflectionClass('Test');
print_r($ref->getDefaultProperties());
?>
--EXPECT--
Array
(
[a] => Array
(
[a] => 1
)
)
Did this file decode correctly?
Original Code
--TEST--
Reflection Bug #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.)
--FILE--
<?php
class Test
{
public $a = array('a' => 1);
}
$ref = new ReflectionClass('Test');
print_r($ref->getDefaultProperties());
?>
--EXPECT--
Array
(
[a] => Array
(
[a] => 1
)
)
Function Calls
None |
Stats
MD5 | e0d1140fe0dd6a8b86c668629c51170e |
Eval Count | 0 |
Decode Time | 76 ms |