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 #46308 (Invalid write when changing property from inside getter) --FILE-- <?p..
Decoded Output download
--TEST--
Bug #46308 (Invalid write when changing property from inside getter)
--FILE--
<?php
class main
{
public static $dummy = NULL ;
public static $dataAccessor = NULL ;
}
class dataAccessor
{
}
class relay
{
public function __get( $name )
{
main::$dataAccessor = new dataAccessor;
}
}
class dummy
{
}
main::$dummy = new dummy();
main::$dataAccessor = new relay();
main::$dataAccessor->bar;
echo "ok
";
?>
--EXPECT--
ok
Did this file decode correctly?
Original Code
--TEST--
Bug #46308 (Invalid write when changing property from inside getter)
--FILE--
<?php
class main
{
public static $dummy = NULL ;
public static $dataAccessor = NULL ;
}
class dataAccessor
{
}
class relay
{
public function __get( $name )
{
main::$dataAccessor = new dataAccessor;
}
}
class dummy
{
}
main::$dummy = new dummy();
main::$dataAccessor = new relay();
main::$dataAccessor->bar;
echo "ok\n";
?>
--EXPECT--
ok
Function Calls
None |
Stats
MD5 | d3df6faf93fed47997c7189b08579f6e |
Eval Count | 0 |
Decode Time | 86 ms |