xref: /PHP-8.2/Zend/tests/constants_008.phpt (revision edf22962)
1--TEST--
2Defining constant twice with two different forms
3--FILE--
4<?php
5
6define('a', 2);
7const a = 1;
8
9
10if (defined('a')) {
11    print a;
12}
13
14?>
15--EXPECTF--
16Warning: Constant a already defined in %s on line %d
172
18