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

1.1     ! misho       1: --TEST--
        !             2: Bug #45910.2 (Cannot declare self-referencing constant)
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: class foo {
        !             7:        const AAA = 'x';
        !             8:        const BBB = 'a';
        !             9:        const CCC = 'a';
        !            10:        const DDD = self::AAA;
        !            11: 
        !            12:        private static $foo = array(
        !            13:                self::BBB       => 'a',
        !            14:                self::CCC       => 'b',
        !            15:                self::DDD       =>  11
        !            16:        );
        !            17:        
        !            18:        public static function test() {
        !            19:                self::$foo;
        !            20:        }
        !            21: }
        !            22: 
        !            23: foo::test();
        !            24: 
        !            25: print 1;
        !            26: ?>
        !            27: --EXPECT--
        !            28: 1

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