2007-07-12 09:23:48 +00:00
|
|
|
--TEST--
|
|
|
|
022: Name search priority (first look into import, then into current namespace and then for class)
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2008-12-04 20:12:30 +00:00
|
|
|
namespace a\b\c;
|
2007-07-12 09:23:48 +00:00
|
|
|
|
2008-12-04 20:12:30 +00:00
|
|
|
use a\b\c as test;
|
2007-07-12 09:23:48 +00:00
|
|
|
|
2007-07-26 08:32:52 +00:00
|
|
|
require "ns_022.inc";
|
2007-07-12 09:23:48 +00:00
|
|
|
|
|
|
|
function foo() {
|
|
|
|
echo __FUNCTION__,"\n";
|
|
|
|
}
|
|
|
|
|
2008-12-04 20:12:30 +00:00
|
|
|
test\foo();
|
|
|
|
\test::foo();
|
2007-07-12 09:23:48 +00:00
|
|
|
--EXPECT--
|
2008-12-04 20:12:30 +00:00
|
|
|
a\b\c\foo
|
2007-07-26 08:32:52 +00:00
|
|
|
Test::foo
|