php-src/Zend/tests/ns_050.phpt

15 lines
192 B
Plaintext
Raw Normal View History

2007-09-28 19:52:53 +00:00
--TEST--
050: Name conflict and compile-time constants (ns name)
--FILE--
<?php
namespace test\ns1;
2007-09-28 19:52:53 +00:00
const INI_ALL = 0;
function foo($x = INI_ALL) {
var_dump($x);
}
foo();
--EXPECT--
int(0)