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 #36337 (ReflectionProperty fails to return correct visibility) --F..

Decoded Output download

--TEST--
Reflection Bug #36337 (ReflectionProperty fails to return correct visibility)
--FILE--
<?php

abstract class enum_ {
    protected $_values;

    public function __construct() {
        $property = new ReflectionProperty(get_class($this),'_values');
        var_dump($property->isProtected());
    }

}

final class myEnum extends enum_ {
    public $_values = array(
           0 => 'No value',
       );
}

$x = new myEnum();

echo "Done
";
?>
--EXPECT--
bool(false)
Done

Did this file decode correctly?

Original Code

--TEST--
Reflection Bug #36337 (ReflectionProperty fails to return correct visibility)
--FILE--
<?php

abstract class enum_ {
    protected $_values;

    public function __construct() {
        $property = new ReflectionProperty(get_class($this),'_values');
        var_dump($property->isProtected());
    }

}

final class myEnum extends enum_ {
    public $_values = array(
           0 => 'No value',
       );
}

$x = new myEnum();

echo "Done\n";
?>
--EXPECT--
bool(false)
Done

Function Calls

None

Variables

None

Stats

MD5 1bb5e6fb23f701110a089b2db496fd4e
Eval Count 0
Decode Time 82 ms