summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_052.phpt
blob: cb0a05ff9ffe6ec8421ad5483937d7fd129c9597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
052: Name conflict and compile-time constants (php name in case if ns name exists)
--FILE--
<?php
namespace test\ns1;

const INI_ALL = 0;

function foo($x = \INI_ALL) {
	var_dump($x);
}
foo();
--EXPECT--
int(7)