1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 13:31:27 +02:00
Files
archived-php-src/Zend/tests/ns_020.phpt
2012-10-10 10:27:49 +08:00

19 lines
206 B
PHP

--TEST--
020: Accesing 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