xref: /PHP-8.1/Zend/tests/ns_035.phpt (revision f8d79582)
1--TEST--
2035: Name ambiguity in compile-time constant reference (php name)
3--FILE--
4<?php
5namespace A;
6use \ArrayObject;
7
8function f1($x = ArrayObject::STD_PROP_LIST) {
9    var_dump($x);
10}
11function f2($x = \ArrayObject::STD_PROP_LIST) {
12    var_dump($x);
13}
14var_dump(ArrayObject::STD_PROP_LIST);
15var_dump(\ArrayObject::STD_PROP_LIST);
16f1();
17f2();
18
19?>
20--EXPECT--
21int(1)
22int(1)
23int(1)
24int(1)
25