From dfb9eb6f82e1393947229f1c09febc3806ab825a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 20 Oct 2017 14:15:23 +0200 Subject: Add a test to demonstrate the behaviour wrt. call_user_func --- .../disabled_functions_chain_call_user_func.phpt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/tests/disabled_functions_chain_call_user_func.phpt (limited to 'src/tests/disabled_functions_chain_call_user_func.phpt') diff --git a/src/tests/disabled_functions_chain_call_user_func.phpt b/src/tests/disabled_functions_chain_call_user_func.phpt new file mode 100644 index 0000000..e13bd5a --- /dev/null +++ b/src/tests/disabled_functions_chain_call_user_func.phpt @@ -0,0 +1,28 @@ +--TEST-- +Disable functions by matching the calltrace, with call_user_func involved +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/config_disabled_functions_chain_call_user_func.ini +--FILE-- + +--EXPECTF-- +I'm before the call to outer +I'm in the outer function, before the call! +[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'outer>inner' in %a/disabled_functions_chain_call_user_func.php:%d has been disabled. +I'm in the outer function, after the call! +I'm after the call to outer -- cgit v1.3