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 --- .../disable_function/disabled_functions_shell_exec_var.phpt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/tests/disable_function/disabled_functions_shell_exec_var.phpt (limited to 'src/tests/disable_function/disabled_functions_shell_exec_var.phpt') diff --git a/src/tests/disable_function/disabled_functions_shell_exec_var.phpt b/src/tests/disable_function/disabled_functions_shell_exec_var.phpt new file mode 100644 index 0000000..e5a6a4e --- /dev/null +++ b/src/tests/disable_function/disabled_functions_shell_exec_var.phpt @@ -0,0 +1,13 @@ +--TEST-- +Disable functions - shell_exec via var call +--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 3 -- cgit v1.3