summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_namespace.phpt
blob: 72c7d0be92fe9c06928a3740ef82c1e9a6c0eb65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--TEST--
Disable functions: namespaces support isn't implemented now
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_namespace.ini
--FILE--
<?php 
namespace my_super_namespace {
	function my_function() {
		echo "1\n";
	}
}
namespace my_second_namespace {
	function my_function() {
		echo "2\n";
	}
}
namespace {
	function my_function() {
		echo "3\n";
	}
\strcmp("1", "2");
\my_super_namespace\my_function();
\my_second_namespace\my_function();
my_function();
}
?>
--XFAIL--
--EXPECTF--
[snuffleupagus] The call to the function 'strcmp' in %a/tests/disabled_functions_namespace.php:%d has been disabled.