Annotation of embedaddon/php/Zend/tests/bug65291.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #65291 - get_defined_constants() causes PHP to crash in a very limited case.
                      3: --FILE--
                      4: <?php
                      5: 
                      6: trait TestTrait
                      7: {
                      8:        public static function testStaticFunction()
                      9:        {
                     10:                return __CLASS__;
                     11:        }
                     12: }
                     13: class Tester
                     14: {
                     15:        use TestTrait;
                     16: }
                     17: 
                     18: $foo = Tester::testStaticFunction();
                     19: get_defined_constants();
                     20: get_defined_constants(true);
                     21: 
                     22: echo $foo;
                     23: ?>
                     24: --EXPECT--
                     25: Tester

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