Annotation of embedaddon/php/Zend/tests/constants_003.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Using namespace constants and constants of global scope
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: namespace foo;
        !             7: 
        !             8: const foo = 1;
        !             9: 
        !            10: define('foo', 2);
        !            11: 
        !            12: var_dump(foo, namespace\foo, \foo\foo, \foo, constant('foo'), constant('foo\foo'));
        !            13: 
        !            14: ?>
        !            15: --EXPECT--
        !            16: int(1)
        !            17: int(1)
        !            18: int(1)
        !            19: int(2)
        !            20: int(2)
        !            21: int(1)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>