summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_018.phpt
blob: 5c2495c63146981cc29ec1d80efd6f889914b2f1 (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