From 10437787b0e8ede80976de4a1c22775fc1282f36 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 29 Nov 2017 11:36:57 +0100 Subject: Implement eval hooking It's not possible to hook the `eval` builtin like other functions.--- src/tests/disabled_functions_eval_filename.phpt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/tests/disabled_functions_eval_filename.phpt (limited to 'src/tests/disabled_functions_eval_filename.phpt') diff --git a/src/tests/disabled_functions_eval_filename.phpt b/src/tests/disabled_functions_eval_filename.phpt new file mode 100644 index 0000000..5e64acc --- /dev/null +++ b/src/tests/disabled_functions_eval_filename.phpt @@ -0,0 +1,14 @@ +--TEST-- +Disable functions - eval +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/config_disabled_functions_eval_filename.ini +--FILE-- + +--EXPECTF-- +[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'eval' in %a/tests/disabled_functions_eval_filename.php(%d) : eval()'d code:%d has been disabled. -- cgit v1.3