/hphp/test/zend/bad/ext/reflection/tests/bug63614.php
http://github.com/facebook/hiphop-php · PHP · 22 lines · 19 code · 3 blank · 0 comment · 0 complexity · 2d32fb71e2eef12f0d2e8a2fe7362717 MD5 · raw file
- <?php
- function dummy() {
- static $a = array();
- }
- class Test
- {
- const A = 0;
- public function func()
- {
- static $a = array(
- self::A => 'a'
- );
- }
- }
- $reflect = new ReflectionFunction("dummy");
- print_r($reflect->getStaticVariables());
- $reflect = new ReflectionMethod('Test', 'func');
- print_r($reflect->getStaticVariables());
- ?>