Annotation of embedaddon/php/ext/reflection/tests/bug63614.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #63614 (Fatal error on Reflection)
! 3: --FILE--
! 4: <?php
! 5: function dummy() {
! 6: static $a = array();
! 7: }
! 8:
! 9: class Test
! 10: {
! 11: const A = 0;
! 12:
! 13: public function func()
! 14: {
! 15: static $a = array(
! 16: self::A => 'a'
! 17: );
! 18: }
! 19: }
! 20:
! 21: $reflect = new ReflectionFunction("dummy");
! 22: print_r($reflect->getStaticVariables());
! 23: $reflect = new ReflectionMethod('Test', 'func');
! 24: print_r($reflect->getStaticVariables());
! 25: ?>
! 26: --EXPECT--
! 27: Array
! 28: (
! 29: [a] => Array
! 30: (
! 31: )
! 32:
! 33: )
! 34: Array
! 35: (
! 36: [a] => Array
! 37: (
! 38: [0] => a
! 39: )
! 40:
! 41: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>