mirror of
https://github.com/php/php-src.git
synced 2025-01-05 18:33:56 +08:00
7aacc705d0
Closes GH-5958
20 lines
213 B
PHP
20 lines
213 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
|