xref: /PHP-7.4/Zend/tests/constants_008.phpt (revision 77e7f1c1)
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--
16Notice: Constant a already defined in %s on line %d
172
18