From c3fddfecfab29504097932184389a94251991bc7 Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Tue, 14 Dec 2021 15:25:31 +0100 Subject: test cases for testing edge cases, eval and cmd execution --- .../disabled_functions_shell_exec_backtick.phpt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/tests/disable_function/disabled_functions_shell_exec_backtick.phpt (limited to 'src/tests/disable_function/disabled_functions_shell_exec_backtick.phpt') diff --git a/src/tests/disable_function/disabled_functions_shell_exec_backtick.phpt b/src/tests/disable_function/disabled_functions_shell_exec_backtick.phpt new file mode 100644 index 0000000..aeb64c2 --- /dev/null +++ b/src/tests/disable_function/disabled_functions_shell_exec_backtick.phpt @@ -0,0 +1,12 @@ +--TEST-- +Disable functions - shell_exec via backtick operator +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/disabled_functions_extra.ini +--FILE-- + +--EXPECTF-- +Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'shell_exec', %a matched a rule in %a.php on line 2 -- cgit v1.3