mirror of
https://github.com/php/php-src.git
synced 2024-11-29 12:53:37 +08:00
20 lines
286 B
PHP
Executable File
20 lines
286 B
PHP
Executable File
--TEST--
|
|
022: Name search priority (first look into import, then into current namespace and then for class)
|
|
--FILE--
|
|
<?php
|
|
namespace a\b\c;
|
|
|
|
use a\b\c as test;
|
|
|
|
require "ns_022.inc";
|
|
|
|
function foo() {
|
|
echo __FUNCTION__,"\n";
|
|
}
|
|
|
|
test\foo();
|
|
\test::foo();
|
|
--EXPECT--
|
|
a\b\c\foo
|
|
Test::foo
|