-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/ext/reflection/tests/
File Upload :
Current File : //usr/src/php/ext/reflection/tests/bug36337.phpt

--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

Copyright © 2017 || Recoded By Mr.Bumblebee