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 #70982 (setStaticPropertyValue behaviors inconsistently with 5.6) --FILE-- <?..

Decoded Output download

--TEST--
Bug #70982 (setStaticPropertyValue behaviors inconsistently with 5.6)
--FILE--
<?php
class Foo {
    static $abc;
    function __construct()
    {
        var_dump(self::$abc);
    }
}

class Bar extends Foo {

}

$rf = new ReflectionClass('Bar');
$rf->setStaticPropertyValue('abc', 'hi');
$foo = $rf->newInstance();
?>
--EXPECT--
string(2) "hi"

Did this file decode correctly?

Original Code

--TEST--
Bug #70982 (setStaticPropertyValue behaviors inconsistently with 5.6)
--FILE--
<?php
class Foo {
    static $abc;
    function __construct()
    {
        var_dump(self::$abc);
    }
}

class Bar extends Foo {

}

$rf = new ReflectionClass('Bar');
$rf->setStaticPropertyValue('abc', 'hi');
$foo = $rf->newInstance();
?>
--EXPECT--
string(2) "hi"

Function Calls

None

Variables

None

Stats

MD5 15beb8451e08ab31f6335d897e4c9c5d
Eval Count 0
Decode Time 99 ms