xref: /PHP-7.2/Zend/tests/ns_035.phpt (revision 610c7fbe)
1--TEST--
2035: Name ambiguity in compile-time constant reference (php name)
3--SKIPIF--
4<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
5--FILE--
6<?php
7namespace A;
8use \ArrayObject;
9
10function f1($x = ArrayObject::STD_PROP_LIST) {
11	var_dump($x);
12}
13function f2($x = \ArrayObject::STD_PROP_LIST) {
14	var_dump($x);
15}
16var_dump(ArrayObject::STD_PROP_LIST);
17var_dump(\ArrayObject::STD_PROP_LIST);
18f1();
19f2();
20
21?>
22--EXPECT--
23int(1)
24int(1)
25int(1)
26int(1)
27