summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_017.phpt
blob: d48afd5f01270815e373f89db4e73e15a1d6564e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
017: Run-time name conflict and functions (php name)
--FILE--
<?php
namespace test\ns1;

function strlen($x) {
	return __FUNCTION__;
}

$x = "strlen";
echo $x("Hello"),"\n";
--EXPECT--
5