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 #30209 (ReflectionClass::getMethod() lowercases attribute) --FILE-..

Decoded Output download

--TEST--
Reflection Bug #30209 (ReflectionClass::getMethod() lowercases attribute)
--FILE--
<?php

class Foo
{
    private $name = 'testBAR';

    public function testBAR()
    {
        try
        {
            $class  = new ReflectionClass($this);
            var_dump($this->name);
            $method = $class->getMethod($this->name);
            var_dump($this->name);
        }

        catch (Exception $e) {}
    }
}

$foo = new Foo;
$foo->testBAR();
?>
--EXPECT--
string(7) "testBAR"
string(7) "testBAR"

Did this file decode correctly?

Original Code

--TEST--
Reflection Bug #30209 (ReflectionClass::getMethod() lowercases attribute)
--FILE--
<?php

class Foo
{
    private $name = 'testBAR';

    public function testBAR()
    {
        try
        {
            $class  = new ReflectionClass($this);
            var_dump($this->name);
            $method = $class->getMethod($this->name);
            var_dump($this->name);
        }

        catch (Exception $e) {}
    }
}

$foo = new Foo;
$foo->testBAR();
?>
--EXPECT--
string(7) "testBAR"
string(7) "testBAR"

Function Calls

None

Variables

None

Stats

MD5 1fbb5e2a424123d3c5640ef4a268d097
Eval Count 0
Decode Time 84 ms