Annotation of embedaddon/php/Zend/tests/constants_009.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Accessing constants inside namespace
! 3: --FILE--
! 4: <?php
! 5:
! 6: namespace foo\x;
! 7:
! 8: const x = 2;
! 9:
! 10: class x {
! 11: const x = 1;
! 12: }
! 13:
! 14:
! 15: var_dump(namespace\x,
! 16: x::x,
! 17: namespace\x::x);
! 18: var_dump(defined('foo\x\x'));
! 19:
! 20: ?>
! 21: --EXPECT--
! 22: int(2)
! 23: int(1)
! 24: int(1)
! 25: bool(true)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>