/hphp/test/zend/bad/ext/reflection/tests/bug63614.php
PHP | 22 lines | 19 code | 3 blank | 0 comment | 0 complexity | 2d32fb71e2eef12f0d2e8a2fe7362717 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?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());
- ?>