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

1.1     ! misho       1: --TEST--
        !             2: Bug #51791 (constant() failed to check undefined constant and php interpreter stoped)
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: class A  {
        !             7:     const B = 1;
        !             8: }
        !             9: var_dump(constant('A::B1'));
        !            10: 
        !            11: ?>
        !            12: --EXPECTF--
        !            13: Warning: constant(): Couldn't find constant A::B1 in %s on line %d
        !            14: NULL

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