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

1.1       misho       1: --TEST--
                      2: Defining constant twice with two different forms
                      3: --FILE--
                      4: <?php
                      5: 
                      6: define('a', 2);
                      7: const a = 1;
                      8: 
                      9: 
                     10: if (defined('a')) {
                     11:        print a;
                     12: }
                     13: 
                     14: ?>
                     15: --EXPECTF--
                     16: Notice: Constant a already defined in %s on line %d
                     17: 2

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