xref: /PHP-8.2/Zend/tests/constants_003.phpt (revision 7126de49)
1--TEST--
2Using namespace constants and constants of global scope
3--FILE--
4<?php
5
6namespace foo;
7
8const foo = 1;
9
10define('foo', 2);
11
12var_dump(foo, namespace\foo, \foo\foo, \foo, constant('foo'), constant('foo\foo'));
13
14?>
15--EXPECT--
16int(1)
17int(1)
18int(1)
19int(2)
20int(2)
21int(1)
22