mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
19 lines
207 B
PHP
19 lines
207 B
PHP
--TEST--
|
|
020: Accessing internal namespace function
|
|
--FILE--
|
|
<?php
|
|
namespace X;
|
|
use X as Y;
|
|
function foo() {
|
|
echo __FUNCTION__,"\n";
|
|
}
|
|
foo();
|
|
\X\foo();
|
|
Y\foo();
|
|
\X\foo();
|
|
--EXPECT--
|
|
X\foo
|
|
X\foo
|
|
X\foo
|
|
X\foo
|