summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_chain_call_user_func_ret.phpt
blob: e11b9abf5d21f31fb30fef5d0a1e9de5f523d4d5 (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
--TEST--
Disable functions by matching the calltrace, on the return value
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_chain_call_user_func_ret.ini
--FILE--
<?php 
function two($a) {
	echo "two\n";
	return $a . "_two";
}
function one($a) {
	echo "one\n";
	two($a);
	return $a . "_one";
}

echo one('not matching') . "\n";
echo one('matching') . "\n";
echo one('still not matching') . "\n";

?>
--EXPECTF--
--XFAIL--
Match on ret is broken :/