mirror of
https://github.com/php/php-src.git
synced 2024-10-17 22:42:38 +00:00
15 lines
193 B
Plaintext
15 lines
193 B
Plaintext
|
--TEST--
|
||
|
050: Name conflict and compile-time constants (ns name)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
namespace test::ns1;
|
||
|
|
||
|
const INI_ALL = 0;
|
||
|
|
||
|
function foo($x = INI_ALL) {
|
||
|
var_dump($x);
|
||
|
}
|
||
|
foo();
|
||
|
--EXPECT--
|
||
|
int(0)
|