php-src/Zend/tests/ns_052.phpt

15 lines
220 B
Plaintext
Raw Normal View History

2007-08-24 13:50:52 +00:00
--TEST--
052: Name conflict and compile-time constants (php name in case if ns name exists)
--FILE--
<?php
2008-12-04 20:12:30 +00:00
namespace test\ns1;
2007-08-24 13:50:52 +00:00
const INI_ALL = 0;
2008-12-04 20:12:30 +00:00
function foo($x = \INI_ALL) {
2007-08-24 13:50:52 +00:00
var_dump($x);
}
foo();
--EXPECT--
int(7)