hiphop-php /hphp/test/zend/bad/ext/reflection/tests/bug63614.php

Language PHP Lines 23
MD5 Hash 2d32fb71e2eef12f0d2e8a2fe7362717 Estimated Cost $375 (why?)
Repository git://github.com/facebook/hiphop-php.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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());
?>
Back to Top