summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_018.phpt
blob: 9ad2fb89b542c83eedd50ae7d1e5c1929e863020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
018: __NAMESPACE__ constant and runtime names (ns name)
--FILE--
<?php
namespace test;

function foo() {
	return __FUNCTION__;
}

$x = __NAMESPACE__ . "\\foo";
echo $x(),"\n";
--EXPECT--
test\foo