summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/broken_conf.phpt3
-rw-r--r--src/tests/broken_conf2.phpt4
-rw-r--r--src/tests/broken_conf_config_regexp.phpt8
-rw-r--r--src/tests/broken_conf_config_regexp_no_closing_paren.phpt8
-rw-r--r--src/tests/broken_conf_cookie_name_and_regexp.phpt4
-rw-r--r--src/tests/broken_conf_enable_disable.phpt4
-rw-r--r--src/tests/broken_conf_eval.phpt4
-rw-r--r--src/tests/broken_conf_expecting_bool.phpt4
-rw-r--r--src/tests/broken_conf_invalid_cidr.phpt4
-rw-r--r--src/tests/broken_conf_invalid_cidr6.phpt4
-rw-r--r--src/tests/broken_conf_invalid_cidr6_no_slash.phpt4
-rw-r--r--src/tests/broken_conf_invalid_cidr_value.phpt8
-rw-r--r--src/tests/broken_conf_invalid_filename.phpt4
-rw-r--r--src/tests/broken_conf_invalid_type.phpt4
-rw-r--r--src/tests/broken_conf_key_value.phpt4
-rw-r--r--src/tests/broken_conf_line_empty_string.phpt4
-rw-r--r--src/tests/broken_conf_line_no_closing.phpt4
-rw-r--r--src/tests/broken_conf_local_var_1.phpt8
-rw-r--r--src/tests/broken_conf_local_var_10.phpt8
-rw-r--r--src/tests/broken_conf_local_var_11.phpt8
-rw-r--r--src/tests/broken_conf_local_var_12.phpt4
-rw-r--r--src/tests/broken_conf_local_var_13.phpt8
-rw-r--r--src/tests/broken_conf_local_var_14.phpt8
-rw-r--r--src/tests/broken_conf_local_var_15.phpt8
-rw-r--r--src/tests/broken_conf_local_var_16.phpt8
-rw-r--r--src/tests/broken_conf_local_var_2.phpt8
-rw-r--r--src/tests/broken_conf_local_var_3.phpt8
-rw-r--r--src/tests/broken_conf_local_var_4.phpt8
-rw-r--r--src/tests/broken_conf_local_var_5.phpt8
-rw-r--r--src/tests/broken_conf_local_var_6.phpt8
-rw-r--r--src/tests/broken_conf_local_var_7.phpt8
-rw-r--r--src/tests/broken_conf_local_var_8.phpt8
-rw-r--r--src/tests/broken_conf_local_var_9.phpt8
-rw-r--r--src/tests/broken_conf_lots_of_quotes.phpt4
-rw-r--r--src/tests/broken_conf_missing_script.phpt6
-rw-r--r--src/tests/broken_conf_mutually_exclusive.phpt4
-rw-r--r--src/tests/broken_conf_mutually_exclusive10.phpt4
-rw-r--r--src/tests/broken_conf_mutually_exclusive2.phpt4
-rw-r--r--src/tests/broken_conf_mutually_exclusive3.phpt4
-rw-r--r--src/tests/broken_conf_mutually_exclusive4.phpt4
-rw-r--r--src/tests/broken_conf_mutually_exclusive5.phpt4
-rw-r--r--src/tests/broken_conf_mutually_exclusive6.phpt4
-rw-r--r--src/tests/broken_conf_mutually_exclusive7.phpt4
-rw-r--r--src/tests/broken_conf_mutually_exclusive8.phpt4
-rw-r--r--src/tests/broken_conf_mutually_exclusive9.phpt4
-rw-r--r--src/tests/broken_conf_no_cookie_action.phpt4
-rw-r--r--src/tests/broken_conf_no_cookie_name.phpt4
-rw-r--r--src/tests/broken_conf_nonexisting_script.phpt6
-rw-r--r--src/tests/broken_conf_quotes.phpt8
-rw-r--r--src/tests/broken_conf_readonly_exec.phpt6
-rw-r--r--src/tests/broken_conf_samesite.phpt4
-rw-r--r--src/tests/broken_conf_shown_in_phpinfo.phpt8
-rw-r--r--src/tests/broken_conf_truncated.phpt4
-rw-r--r--src/tests/broken_conf_unserialize.phpt6
-rw-r--r--src/tests/broken_conf_upload_validation.phpt6
-rw-r--r--src/tests/broken_conf_weird_keyword.phpt4
-rw-r--r--src/tests/broken_conf_wrong_quotes.phpt4
-rw-r--r--src/tests/broken_conf_wrong_type.phpt4
-rw-r--r--src/tests/broken_invalid_client_ip4.phpt5
-rw-r--r--src/tests/broken_regexp.phpt8
-rw-r--r--src/tests/broken_unmatching_brackets.phpt8
-rw-r--r--src/tests/crypt_session_invalid.phpt2
-rw-r--r--src/tests/deny_writable_execution.phpt4
-rw-r--r--src/tests/deny_writable_execution_disabled.phpt2
-rw-r--r--src/tests/deny_writable_execution_simulation.phpt12
-rw-r--r--src/tests/disabled_function_echo.phpt3
-rw-r--r--src/tests/disabled_function_echo_2.phpt3
-rw-r--r--src/tests/disabled_function_echo_local_var.phpt3
-rw-r--r--src/tests/disabled_function_local_var.phpt3
-rw-r--r--src/tests/disabled_function_local_var_10.phpt3
-rw-r--r--src/tests/disabled_function_local_var_2.phpt3
-rw-r--r--src/tests/disabled_function_local_var_3.phpt3
-rw-r--r--src/tests/disabled_function_local_var_4.phpt3
-rw-r--r--src/tests/disabled_function_local_var_5.phpt3
-rw-r--r--src/tests/disabled_function_local_var_6.phpt3
-rw-r--r--src/tests/disabled_function_local_var_7.phpt3
-rw-r--r--src/tests/disabled_function_local_var_8.phpt3
-rw-r--r--src/tests/disabled_function_local_var_9.phpt3
-rw-r--r--src/tests/disabled_function_local_var_const.phpt2
-rw-r--r--src/tests/disabled_function_local_var_obj.phpt3
-rw-r--r--src/tests/disabled_function_param.phpt3
-rw-r--r--src/tests/disabled_function_print.phpt3
-rw-r--r--src/tests/disabled_function_super_global_var.phpt3
-rw-r--r--src/tests/disabled_functions.phpt3
-rw-r--r--src/tests/disabled_functions_callback_called_file_r.phpt4
-rw-r--r--src/tests/disabled_functions_called_file_r.phpt4
-rw-r--r--src/tests/disabled_functions_chain.phpt3
-rw-r--r--src/tests/disabled_functions_chain_call_user_func.phpt3
-rw-r--r--src/tests/disabled_functions_chain_call_user_func_ret.phpt2
-rw-r--r--src/tests/disabled_functions_cidr.phpt2
-rw-r--r--src/tests/disabled_functions_cidr_6.phpt2
-rw-r--r--src/tests/disabled_functions_die.phpt4
-rw-r--r--src/tests/disabled_functions_eval.phpt2
-rw-r--r--src/tests/disabled_functions_eval_filename.phpt2
-rw-r--r--src/tests/disabled_functions_eval_simulation.phpt4
-rw-r--r--src/tests/disabled_functions_eval_user.phpt2
-rw-r--r--src/tests/disabled_functions_exit.phpt4
-rw-r--r--src/tests/disabled_functions_filename_r.phpt3
-rw-r--r--src/tests/disabled_functions_include_once.phpt11
-rw-r--r--src/tests/disabled_functions_include_simulation.phpt11
-rw-r--r--src/tests/disabled_functions_local_var_array.phpt3
-rw-r--r--src/tests/disabled_functions_local_var_array_key.phpt3
-rw-r--r--src/tests/disabled_functions_mb.phpt2
-rw-r--r--src/tests/disabled_functions_method.phpt2
-rw-r--r--src/tests/disabled_functions_name_r.phpt3
-rw-r--r--src/tests/disabled_functions_name_regexp_type.phpt3
-rw-r--r--src/tests/disabled_functions_name_type.phpt3
-rw-r--r--src/tests/disabled_functions_namespace.phpt2
-rw-r--r--src/tests/disabled_functions_nul_byte.phpt2
-rw-r--r--src/tests/disabled_functions_param.phpt2
-rw-r--r--src/tests/disabled_functions_param_alias.phpt2
-rw-r--r--src/tests/disabled_functions_param_allow.phpt3
-rw-r--r--src/tests/disabled_functions_param_array.phpt3
-rw-r--r--src/tests/disabled_functions_param_array_deref.phpt3
-rw-r--r--src/tests/disabled_functions_param_array_no_value.phpt3
-rw-r--r--src/tests/disabled_functions_param_array_r.phpt3
-rw-r--r--src/tests/disabled_functions_param_array_r_keys.phpt3
-rw-r--r--src/tests/disabled_functions_param_array_several_levels.phpt3
-rw-r--r--src/tests/disabled_functions_param_array_several_levels_int.phpt3
-rw-r--r--src/tests/disabled_functions_param_array_several_levels_keys.phpt3
-rw-r--r--src/tests/disabled_functions_param_array_several_levels_keys_int.phpt3
-rw-r--r--src/tests/disabled_functions_param_broken_line.phpt6
-rw-r--r--src/tests/disabled_functions_param_int.phpt3
-rw-r--r--src/tests/disabled_functions_param_invalid_pos.phpt5
-rw-r--r--src/tests/disabled_functions_param_line.phpt3
-rw-r--r--src/tests/disabled_functions_param_pos.phpt5
-rw-r--r--src/tests/disabled_functions_param_pos2.phpt2
-rw-r--r--src/tests/disabled_functions_param_r.phpt2
-rw-r--r--src/tests/disabled_functions_pos_type.phpt8
-rw-r--r--src/tests/disabled_functions_regexp_multiple.phpt7
-rw-r--r--src/tests/disabled_functions_register_shutdown_function.phpt3
-rw-r--r--src/tests/disabled_functions_register_tick_function.phpt3
-rw-r--r--src/tests/disabled_functions_require.phpt5
-rw-r--r--src/tests/disabled_functions_require_once.phpt5
-rw-r--r--src/tests/disabled_functions_require_simulation.phpt11
-rw-r--r--src/tests/disabled_functions_ret.phpt2
-rw-r--r--src/tests/disabled_functions_ret2.phpt2
-rw-r--r--src/tests/disabled_functions_ret3.phpt3
-rw-r--r--src/tests/disabled_functions_ret_right_hash.phpt3
-rw-r--r--src/tests/disabled_functions_ret_simulation.phpt8
-rw-r--r--src/tests/disabled_functions_ret_type.phpt3
-rw-r--r--src/tests/disabled_functions_ret_type_array.phpt2
-rw-r--r--src/tests/disabled_functions_ret_type_double.phpt2
-rw-r--r--src/tests/disabled_functions_ret_type_long.phpt2
-rw-r--r--src/tests/disabled_functions_ret_type_null.phpt2
-rw-r--r--src/tests/disabled_functions_ret_type_object.phpt2
-rw-r--r--src/tests/disabled_functions_ret_type_resource.phpt2
-rw-r--r--src/tests/disabled_functions_ret_type_str.phpt2
-rw-r--r--src/tests/disabled_functions_ret_type_true.phpt3
-rw-r--r--src/tests/disabled_functions_ret_val.phpt3
-rw-r--r--src/tests/disabled_functions_ret_val_dump.phpt3
-rw-r--r--src/tests/disabled_functions_ret_val_rx.phpt3
-rw-r--r--src/tests/disabled_functions_runtime.phpt7
-rw-r--r--src/tests/disabled_functions_upper.phpt2
-rw-r--r--src/tests/disabled_functions_variadic.phpt5
-rw-r--r--src/tests/disabled_functions_zero_cidr.phpt2
-rw-r--r--src/tests/disabled_native_functions_indirect.phpt2
-rw-r--r--src/tests/disabled_user_functions.phpt2
-rw-r--r--src/tests/disabled_user_functions_indirect.phpt2
-rw-r--r--src/tests/dump_eval_blacklist.phpt5
-rw-r--r--src/tests/dump_eval_whitelist.phpt3
-rw-r--r--src/tests/dump_request.phpt5
-rw-r--r--src/tests/dump_request_invalid_folder.phpt6
-rw-r--r--src/tests/dump_request_too_big.phpt3
-rw-r--r--src/tests/dump_segfault1.phpt3
-rw-r--r--src/tests/dump_unserialize.phpt4
-rw-r--r--src/tests/encrypt_cookies_empty_env.phpt4
-rw-r--r--src/tests/encrypt_cookies_invalid_decryption.phpt6
-rw-r--r--src/tests/encrypt_cookies_invalid_decryption2.phpt6
-rw-r--r--src/tests/encrypt_cookies_invalid_decryption_short_cookie.phpt3
-rw-r--r--src/tests/encrypt_cookies_invalid_decryption_simulation.phpt3
-rw-r--r--src/tests/encrypt_cookies_no_env.phpt3
-rw-r--r--src/tests/encrypt_cookies_no_key.phpt3
-rw-r--r--src/tests/encrypt_regexp_cookies_empty_env.phpt2
-rw-r--r--src/tests/encrypt_regexp_cookies_invalid_decryption.phpt6
-rw-r--r--src/tests/encrypt_regexp_cookies_invalid_decryption2.phpt6
-rw-r--r--src/tests/encrypt_regexp_cookies_no_env.phpt3
-rw-r--r--src/tests/encrypt_regexp_cookies_no_key.phpt3
-rw-r--r--src/tests/eval_backlist.phpt3
-rw-r--r--src/tests/eval_backlist_list.phpt3
-rw-r--r--src/tests/eval_backlist_simulation.phpt5
-rw-r--r--src/tests/eval_backlist_whitelist.phpt3
-rw-r--r--src/tests/eval_backlist_whitelist_builtin.phpt3
-rw-r--r--src/tests/eval_whitelist.phpt3
-rw-r--r--src/tests/eval_whitelist_builtin.phpt3
-rw-r--r--src/tests/eval_whitelist_include_then_user.phpt3
-rw-r--r--src/tests/eval_whitelist_simulation.phpt3
-rw-r--r--src/tests/eval_whitelist_user_then_builtin.phpt3
-rw-r--r--src/tests/glob_config.phpt6
-rw-r--r--src/tests/inexistent_conf_file.phpt4
-rw-r--r--src/tests/inexistent_conf_file_list.phpt4
-rw-r--r--src/tests/multi_config.phpt6
-rw-r--r--src/tests/nested_eval_blacklist.phpt3
-rw-r--r--src/tests/nested_eval_blacklist2.phpt3
-rw-r--r--src/tests/noncore_function_hooking.phpt2
-rw-r--r--src/tests/unserialize_fail.phpt10
-rw-r--r--src/tests/unserialize_sim.phpt5
-rw-r--r--src/tests/upload_validation.phpt1
-rw-r--r--src/tests/upload_validation_invalid.phpt8
-rw-r--r--src/tests/upload_validation_ko.phpt2
-rw-r--r--src/tests/upload_validation_ko_simulation.phpt3
-rw-r--r--src/tests/upload_validation_no_exec.phpt3
-rw-r--r--src/tests/upload_validation_real.phpt3
203 files changed, 542 insertions, 305 deletions
diff --git a/src/tests/broken_conf.phpt b/src/tests/broken_conf.phpt
index 9b461bb..981f982 100644
--- a/src/tests/broken_conf.phpt
+++ b/src/tests/broken_conf.phpt
@@ -6,5 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf.ini 6sp.configuration_file={PWD}/config/broken_conf.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration prefix for 'this is a broken line' on line 1. 9PHP Fatal error: [snuffleupagus][config] Invalid configuration prefix for 'this is a broken line' on line 1 in Unknown on line 0
10 10
11Fatal error: [snuffleupagus][config] Invalid configuration prefix for 'this is a broken line' on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf2.phpt b/src/tests/broken_conf2.phpt
index da9ac95..240e3af 100644
--- a/src/tests/broken_conf2.phpt
+++ b/src/tests/broken_conf2.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf2.ini 6sp.configuration_file={PWD}/config/broken_conf2.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration section 'sp.wrong' on line 1. 9PHP Fatal error: [snuffleupagus][config] Invalid configuration section 'sp.wrong' on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Invalid configuration section 'sp.wrong' on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_config_regexp.phpt b/src/tests/broken_conf_config_regexp.phpt
index e49788c..c4e788e 100644
--- a/src/tests/broken_conf_config_regexp.phpt
+++ b/src/tests/broken_conf_config_regexp.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_config_regexp.ini 6sp.configuration_file={PWD}/config/broken_config_regexp.ini
7--FILE-- 7--FILE--
8--EXPECTF-- 8--EXPECTF--
9[snuffleupagus][0.0.0.0][config][error] Failed to compile '*.': %aon line 1. 9PHP Fatal error: [snuffleupagus][config] Failed to compile '*.': %s on line 1. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1. 10PHP Fatal error: [snuffleupagus][config] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Failed to compile '*.': %s on line 1. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1 in Unknown on line 0
diff --git a/src/tests/broken_conf_config_regexp_no_closing_paren.phpt b/src/tests/broken_conf_config_regexp_no_closing_paren.phpt
index a57286d..16351a4 100644
--- a/src/tests/broken_conf_config_regexp_no_closing_paren.phpt
+++ b/src/tests/broken_conf_config_regexp_no_closing_paren.phpt
@@ -6,5 +6,9 @@ Broken configuration - regexp without a closing parenthesis
6sp.configuration_file={PWD}/config/broken_config_regexp_no_closing_paren.ini 6sp.configuration_file={PWD}/config/broken_config_regexp_no_closing_paren.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][error][error] There is an issue with the parsing of '"*."': it doesn't look like a valid string on line 1. 9PHP Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"*."': it doesn't look like a valid string on line 1 in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1. 10PHP Fatal error: [snuffleupagus][config] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"*."': it doesn't look like a valid string on line 1 in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_cookie_name_and_regexp.phpt b/src/tests/broken_conf_cookie_name_and_regexp.phpt
index 8b0dbfa..ae3fa62 100644
--- a/src/tests/broken_conf_cookie_name_and_regexp.phpt
+++ b/src/tests/broken_conf_cookie_name_and_regexp.phpt
@@ -6,4 +6,6 @@ Borken configuration - encrypted cookie with name and regexp
6sp.configuration_file={PWD}/config/broken_conf_cookie_name_and_regexp.ini 6sp.configuration_file={PWD}/config/broken_conf_cookie_name_and_regexp.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] name and name_r are mutually exclusive on line 2. 9PHP Fatal error: [snuffleupagus][config] name and name_r are mutually exclusive on line 2 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] name and name_r are mutually exclusive on line 2 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_enable_disable.phpt b/src/tests/broken_conf_enable_disable.phpt
index 5d860b9..f96e737 100644
--- a/src/tests/broken_conf_enable_disable.phpt
+++ b/src/tests/broken_conf_enable_disable.phpt
@@ -6,4 +6,6 @@ Global strict mode
6sp.configuration_file={PWD}/config/borken_conf_enable_disable.ini 6sp.configuration_file={PWD}/config/borken_conf_enable_disable.ini
7--FILE-- 7--FILE--
8--EXPECTF-- 8--EXPECTF--
9[snuffleupagus][0.0.0.0][config][error] A rule can't be enabled and disabled on line 1. 9PHP Fatal error: [snuffleupagus][config] A rule can't be enabled and disabled on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] A rule can't be enabled and disabled on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_eval.phpt b/src/tests/broken_conf_eval.phpt
index 4dc5312..6ba7f8f 100644
--- a/src/tests/broken_conf_eval.phpt
+++ b/src/tests/broken_conf_eval.phpt
@@ -6,4 +6,6 @@ Broken configuration for eval
6sp.configuration_file={PWD}/config/broken_conf_eval.ini 6sp.configuration_file={PWD}/config/broken_conf_eval.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][error][error] There is an issue with the parsing of '"cos,sin': it doesn't look like a valid string on line 1. 9PHP Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"cos,sin': it doesn't look like a valid string on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"cos,sin': it doesn't look like a valid string on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_expecting_bool.phpt b/src/tests/broken_conf_expecting_bool.phpt
index a6aceb2..261ce6e 100644
--- a/src/tests/broken_conf_expecting_bool.phpt
+++ b/src/tests/broken_conf_expecting_bool.phpt
@@ -6,4 +6,6 @@ Bad boolean value in configuration
6sp.configuration_file={PWD}/config/broken_conf_expecting_bool.ini 6sp.configuration_file={PWD}/config/broken_conf_expecting_bool.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Trailing chars '337);' at the end of '.enable(1337);' on line 5. 9PHP Fatal error: [snuffleupagus][config] Trailing chars '337);' at the end of '.enable(1337);' on line 5 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Trailing chars '337);' at the end of '.enable(1337);' on line 5 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_invalid_cidr.phpt b/src/tests/broken_conf_invalid_cidr.phpt
index 515091b..ccf4026 100644
--- a/src/tests/broken_conf_invalid_cidr.phpt
+++ b/src/tests/broken_conf_invalid_cidr.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_invalid_cidr.ini 6sp.configuration_file={PWD}/config/broken_conf_invalid_cidr.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] '42' isn't a valid ipv4 mask. 9PHP Fatal error: [snuffleupagus][config] '42' isn't a valid ipv4 mask. in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] '42' isn't a valid ipv4 mask. in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_invalid_cidr6.phpt b/src/tests/broken_conf_invalid_cidr6.phpt
index d20cfcd..802f9f2 100644
--- a/src/tests/broken_conf_invalid_cidr6.phpt
+++ b/src/tests/broken_conf_invalid_cidr6.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_invalid_cidr6.ini 6sp.configuration_file={PWD}/config/broken_conf_invalid_cidr6.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] 'ZZZ' isn't a valid network mask. 9PHP Fatal error: [snuffleupagus][config] 'ZZZ' isn't a valid network mask. in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] 'ZZZ' isn't a valid network mask. in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_invalid_cidr6_no_slash.phpt b/src/tests/broken_conf_invalid_cidr6_no_slash.phpt
index de70a05..02e5201 100644
--- a/src/tests/broken_conf_invalid_cidr6_no_slash.phpt
+++ b/src/tests/broken_conf_invalid_cidr6_no_slash.phpt
@@ -6,4 +6,6 @@ Broken configuration, invalid cidr for ipv6 because there is no `/` in it
6sp.configuration_file={PWD}/config/broken_conf_invalid_cidr6_no_slash.ini 6sp.configuration_file={PWD}/config/broken_conf_invalid_cidr6_no_slash.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] '2001:0db8:0000:0000:0000:ff00:0042:8329' isn't a valid network mask, it seems that you forgot a '/'. 9PHP Fatal error: [snuffleupagus][config] '2001:0db8:0000:0000:0000:ff00:0042:8329' isn't a valid network mask, it seems that you forgot a '/'. in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] '2001:0db8:0000:0000:0000:ff00:0042:8329' isn't a valid network mask, it seems that you forgot a '/'. in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_invalid_cidr_value.phpt b/src/tests/broken_conf_invalid_cidr_value.phpt
index a63df28..c966656 100644
--- a/src/tests/broken_conf_invalid_cidr_value.phpt
+++ b/src/tests/broken_conf_invalid_cidr_value.phpt
@@ -7,5 +7,9 @@ Broken configuration, invalid cidr value
7sp.configuration_file={PWD}/config/broken_conf_invalid_cidr_value.ini 7sp.configuration_file={PWD}/config/broken_conf_invalid_cidr_value.ini
8--FILE-- 8--FILE--
9--EXPECT-- 9--EXPECT--
10[snuffleupagus][0.0.0.0][error][error] A valid string as parameter is expected on line 1. 10PHP Fatal error: [snuffleupagus][error] A valid string as parameter is expected on line 1 in Unknown on line 0
11[snuffleupagus][0.0.0.0][config][error] " doesn't contain a valid cidr on line 1. \ No newline at end of file 11PHP Fatal error: [snuffleupagus][config] " doesn't contain a valid cidr on line 1 in Unknown on line 0
12
13Fatal error: [snuffleupagus][error] A valid string as parameter is expected on line 1 in Unknown on line 0
14
15Fatal error: [snuffleupagus][config] " doesn't contain a valid cidr on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_invalid_filename.phpt b/src/tests/broken_conf_invalid_filename.phpt
index a1515a7..f02db98 100644
--- a/src/tests/broken_conf_invalid_filename.phpt
+++ b/src/tests/broken_conf_invalid_filename.phpt
@@ -6,4 +6,6 @@ Broken configuration filename without absolute path
6sp.configuration_file={PWD}/config/broken_conf_invalid_filename.ini 6sp.configuration_file={PWD}/config/broken_conf_invalid_filename.ini
7--FILE-- 7--FILE--
8--EXPECTF-- 8--EXPECTF--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.function("sprintf").filename("wrong file name").drop();':'.filename' must be an absolute path or a phar archive on line 1. 9PHP Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("sprintf").filename("wrong file name").drop();':'.filename' must be an absolute path or a phar archive on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("sprintf").filename("wrong file name").drop();':'.filename' must be an absolute path or a phar archive on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_invalid_type.phpt b/src/tests/broken_conf_invalid_type.phpt
index 246492f..6bb6f50 100644
--- a/src/tests/broken_conf_invalid_type.phpt
+++ b/src/tests/broken_conf_invalid_type.phpt
@@ -6,4 +6,6 @@ Broken conf with wrong type
6sp.configuration_file={PWD}/config/broken_conf_invalid_type.ini 6sp.configuration_file={PWD}/config/broken_conf_invalid_type.ini
7--FILE-- 7--FILE--
8--EXPECTF-- 8--EXPECTF--
9[snuffleupagus][0.0.0.0][error][error] There is an issue with the parsing of '"totally_wrong"_type")': it doesn't look like a valid string on line 1. 9PHP Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"totally_wrong"_type")': it doesn't look like a valid string on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"totally_wrong"_type")': it doesn't look like a valid string on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_key_value.phpt b/src/tests/broken_conf_key_value.phpt
index e9ee4a9..50dbb2b 100644
--- a/src/tests/broken_conf_key_value.phpt
+++ b/src/tests/broken_conf_key_value.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_key_value.ini 6sp.configuration_file={PWD}/config/broken_conf_key_value.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.function("system").var("").value("").key("").drop();':`key` and `value` are mutually exclusive on line 1. 9PHP Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").var("").value("").key("").drop();':`key` and `value` are mutually exclusive on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").var("").value("").key("").drop();':`key` and `value` are mutually exclusive on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_line_empty_string.phpt b/src/tests/broken_conf_line_empty_string.phpt
index 44f8d5e..9bc20c7 100644
--- a/src/tests/broken_conf_line_empty_string.phpt
+++ b/src/tests/broken_conf_line_empty_string.phpt
@@ -6,4 +6,6 @@ Configuration line with an empty string
6sp.configuration_file={PWD}/config/broken_conf_line_empty_string.ini 6sp.configuration_file={PWD}/config/broken_conf_line_empty_string.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][error][error] A valid string as parameter is expected on line 1. 9PHP Fatal error: [snuffleupagus][error] A valid string as parameter is expected on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][error] A valid string as parameter is expected on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_line_no_closing.phpt b/src/tests/broken_conf_line_no_closing.phpt
index 13e3aa1..999c655 100644
--- a/src/tests/broken_conf_line_no_closing.phpt
+++ b/src/tests/broken_conf_line_no_closing.phpt
@@ -6,4 +6,6 @@ Configuration line without closing parenthese
6sp.configuration_file={PWD}/config/broken_conf_line_no_closing.ini 6sp.configuration_file={PWD}/config/broken_conf_line_no_closing.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][error][error] There is an issue with the parsing of '"123"': it doesn't look like a valid string on line 1. 9PHP Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"123"': it doesn't look like a valid string on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"123"': it doesn't look like a valid string on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_1.phpt b/src/tests/broken_conf_local_var_1.phpt
index a91d275..9a22eb9 100644
--- a/src/tests/broken_conf_local_var_1.phpt
+++ b/src/tests/broken_conf_local_var_1.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_1.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_1.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `]` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `]` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value ']' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value ']' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `]` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value ']' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_10.phpt b/src/tests/broken_conf_local_var_10.phpt
index 8a7d9b9..9efea61 100644
--- a/src/tests/broken_conf_local_var_10.phpt
+++ b/src/tests/broken_conf_local_var_10.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_10.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_10.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `]` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `]` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value 'asd[asd]asd' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value 'asd[asd]asd' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `]` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value 'asd[asd]asd' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_11.phpt b/src/tests/broken_conf_local_var_11.phpt
index 1817a3f..4d8aa8b 100644
--- a/src/tests/broken_conf_local_var_11.phpt
+++ b/src/tests/broken_conf_local_var_11.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_11.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_11.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `::` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `::` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value 'asd::' for `param` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value 'asd::' for `param` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `::` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value 'asd::' for `param` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_12.phpt b/src/tests/broken_conf_local_var_12.phpt
index 0b52e2a..b893740 100644
--- a/src/tests/broken_conf_local_var_12.phpt
+++ b/src/tests/broken_conf_local_var_12.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_12.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_12.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Empty value in `var` on line 1. 9PHP Fatal error: [snuffleupagus][config] Empty value in `var` on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Empty value in `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_13.phpt b/src/tests/broken_conf_local_var_13.phpt
index ca6be6d..5a1f431 100644
--- a/src/tests/broken_conf_local_var_13.phpt
+++ b/src/tests/broken_conf_local_var_13.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_13.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_13.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `->` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `->` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value 'asd->asd' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value 'asd->asd' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `->` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value 'asd->asd' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_14.phpt b/src/tests/broken_conf_local_var_14.phpt
index cb7e455..330c603 100644
--- a/src/tests/broken_conf_local_var_14.phpt
+++ b/src/tests/broken_conf_local_var_14.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_14.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_14.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid var name: $i+valid var name . 9PHP Fatal error: [snuffleupagus][config] Invalid var name: $i+valid var name . in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value '$i+valid var name ' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value '$i+valid var name ' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid var name: $i+valid var name . in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value '$i+valid var name ' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_15.phpt b/src/tests/broken_conf_local_var_15.phpt
index 456d6e8..fd4319c 100644
--- a/src/tests/broken_conf_local_var_15.phpt
+++ b/src/tests/broken_conf_local_var_15.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_15.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_15.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid var name: $i$$!@#. 9PHP Fatal error: [snuffleupagus][config] Invalid var name: $i$$!@#. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value '$i$$!@#->qwe' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value '$i$$!@#->qwe' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid var name: $i$$!@#. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value '$i$$!@#->qwe' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_16.phpt b/src/tests/broken_conf_local_var_16.phpt
index 84b29bf..e27caab 100644
--- a/src/tests/broken_conf_local_var_16.phpt
+++ b/src/tests/broken_conf_local_var_16.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_16.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_16.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Missing a closing quote. 9PHP Fatal error: [snuffleupagus][config] Missing a closing quote. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value '"' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value '"' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Missing a closing quote. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value '"' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_2.phpt b/src/tests/broken_conf_local_var_2.phpt
index b67a492..aa458b3 100644
--- a/src/tests/broken_conf_local_var_2.phpt
+++ b/src/tests/broken_conf_local_var_2.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_2.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_2.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `"` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `"` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value '""asd' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value '""asd' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `"` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value '""asd' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_3.phpt b/src/tests/broken_conf_local_var_3.phpt
index 639d2ea..fb365c9 100644
--- a/src/tests/broken_conf_local_var_3.phpt
+++ b/src/tests/broken_conf_local_var_3.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_3.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_3.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `->` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `->` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value '$qwe->::' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value '$qwe->::' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `->` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value '$qwe->::' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_4.phpt b/src/tests/broken_conf_local_var_4.phpt
index e50f9a6..b8ec75e 100644
--- a/src/tests/broken_conf_local_var_4.phpt
+++ b/src/tests/broken_conf_local_var_4.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_4.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_4.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `"` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `"` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value '"asd"asd[]' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value '"asd"asd[]' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `"` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value '"asd"asd[]' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_5.phpt b/src/tests/broken_conf_local_var_5.phpt
index 0c0d59a..65daf25 100644
--- a/src/tests/broken_conf_local_var_5.phpt
+++ b/src/tests/broken_conf_local_var_5.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_5.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_5.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `'` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `'` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value ''asd'asd[]' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value ''asd'asd[]' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `'` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value ''asd'asd[]' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_6.phpt b/src/tests/broken_conf_local_var_6.phpt
index c51de24..0e21d6b 100644
--- a/src/tests/broken_conf_local_var_6.phpt
+++ b/src/tests/broken_conf_local_var_6.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_6.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_6.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `'` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `'` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value '''asd' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value '''asd' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `'` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value '''asd' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_7.phpt b/src/tests/broken_conf_local_var_7.phpt
index d3a0fa4..596764c 100644
--- a/src/tests/broken_conf_local_var_7.phpt
+++ b/src/tests/broken_conf_local_var_7.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_7.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_7.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `->` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `->` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value 'asd-->' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value 'asd-->' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `->` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value 'asd-->' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_8.phpt b/src/tests/broken_conf_local_var_8.phpt
index 749a1aa..00069ec 100644
--- a/src/tests/broken_conf_local_var_8.phpt
+++ b/src/tests/broken_conf_local_var_8.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_8.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_8.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `]` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `]` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value 'asd[asd]"asd"' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value 'asd[asd]"asd"' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `]` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value 'asd[asd]"asd"' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_local_var_9.phpt b/src/tests/broken_conf_local_var_9.phpt
index 6f706db..7536e30 100644
--- a/src/tests/broken_conf_local_var_9.phpt
+++ b/src/tests/broken_conf_local_var_9.phpt
@@ -6,5 +6,9 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_local_var_9.ini 6sp.configuration_file={PWD}/config/broken_conf_local_var_9.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid `]` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `]` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value 'asd[asd]'asd'' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value 'asd[asd]'asd'' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `]` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value 'asd[asd]'asd'' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_lots_of_quotes.phpt b/src/tests/broken_conf_lots_of_quotes.phpt
index bad4a35..e11d54b 100644
--- a/src/tests/broken_conf_lots_of_quotes.phpt
+++ b/src/tests/broken_conf_lots_of_quotes.phpt
@@ -6,4 +6,6 @@ Configuration line with too many quotes
6sp.configuration_file={PWD}/config/broken_conf_lots_of_quotes.ini 6sp.configuration_file={PWD}/config/broken_conf_lots_of_quotes.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][error][error] There is an issue with the parsing of '"this\"is a weird\"\"\"cookie\"name"");': it doesn't look like a valid string on line 1. 9PHP Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"this\"is a weird\"\"\"cookie\"name"");': it doesn't look like a valid string on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"this\"is a weird\"\"\"cookie\"name"");': it doesn't look like a valid string on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_missing_script.phpt b/src/tests/broken_conf_missing_script.phpt
index 3922493..2166d3b 100644
--- a/src/tests/broken_conf_missing_script.phpt
+++ b/src/tests/broken_conf_missing_script.phpt
@@ -8,5 +8,7 @@ sp.configuration_file={PWD}/config/broken_conf_missing_script.ini
8echo 1; 8echo 1;
9?> 9?>
10--EXPECTF-- 10--EXPECTF--
11[snuffleupagus][0.0.0.0][config][error] The `script` directive is mandatory in '.enable();' on line 1. 11PHP Fatal error: [snuffleupagus][config] The `script` directive is mandatory in '.enable();' on line 1 in Unknown on line 0
121 12
13Fatal error: [snuffleupagus][config] The `script` directive is mandatory in '.enable();' on line 1 in Unknown on line 0
141 \ No newline at end of file
diff --git a/src/tests/broken_conf_mutually_exclusive.phpt b/src/tests/broken_conf_mutually_exclusive.phpt
index 5897770..6cc9bd6 100644
--- a/src/tests/broken_conf_mutually_exclusive.phpt
+++ b/src/tests/broken_conf_mutually_exclusive.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive.ini 6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").value_r("^id$").drop();': '.value' and '.regexp' are mutually exclusive on line 1. 9PHP Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").value_r("^id$").drop();': '.value' and '.regexp' are mutually exclusive on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").value_r("^id$").drop();': '.value' and '.regexp' are mutually exclusive on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_mutually_exclusive10.phpt b/src/tests/broken_conf_mutually_exclusive10.phpt
index 0e7903e..a9c15d7 100644
--- a/src/tests/broken_conf_mutually_exclusive10.phpt
+++ b/src/tests/broken_conf_mutually_exclusive10.phpt
@@ -6,4 +6,6 @@ Broken configuration - enabled/disabled readonly
6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive10.ini 6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive10.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] A rule can't be enabled and disabled on line 1. 9PHP Fatal error: [snuffleupagus][config] A rule can't be enabled and disabled on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] A rule can't be enabled and disabled on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_mutually_exclusive2.phpt b/src/tests/broken_conf_mutually_exclusive2.phpt
index cfbf13a..570b917 100644
--- a/src/tests/broken_conf_mutually_exclusive2.phpt
+++ b/src/tests/broken_conf_mutually_exclusive2.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive2.ini 6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive2.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.function("system").function_r("system").param("id").value("42").drop();': '.r_function' and '.function' are mutually exclusive on line 1. \ No newline at end of file 9PHP Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").function_r("system").param("id").value("42").drop();': '.r_function' and '.function' are mutually exclusive on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").function_r("system").param("id").value("42").drop();': '.r_function' and '.function' are mutually exclusive on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_mutually_exclusive3.phpt b/src/tests/broken_conf_mutually_exclusive3.phpt
index 7b94318..e7387eb 100644
--- a/src/tests/broken_conf_mutually_exclusive3.phpt
+++ b/src/tests/broken_conf_mutually_exclusive3.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive3.ini 6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive3.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").filename_r("^id$").filename("pouet.txt").drop();': '.r_filename' and '.filename' are mutually exclusive on line 1. 9PHP Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").filename_r("^id$").filename("pouet.txt").drop();': '.r_filename' and '.filename' are mutually exclusive on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").filename_r("^id$").filename("pouet.txt").drop();': '.r_filename' and '.filename' are mutually exclusive on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_mutually_exclusive4.phpt b/src/tests/broken_conf_mutually_exclusive4.phpt
index a60f3fa..82b2dcc 100644
--- a/src/tests/broken_conf_mutually_exclusive4.phpt
+++ b/src/tests/broken_conf_mutually_exclusive4.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive4.ini 6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive4.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").param_r("^id$").drop();':'.r_param', '.param' and '.pos' are mutually exclusive on line 1. 9PHP Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").param_r("^id$").drop();':'.r_param', '.param' and '.pos' are mutually exclusive on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").param_r("^id$").drop();':'.r_param', '.param' and '.pos' are mutually exclusive on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_mutually_exclusive5.phpt b/src/tests/broken_conf_mutually_exclusive5.phpt
index 0a9e0fd..b23fba6 100644
--- a/src/tests/broken_conf_mutually_exclusive5.phpt
+++ b/src/tests/broken_conf_mutually_exclusive5.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive5.ini 6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive5.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.function("system").ret("0").drop().ret_r("^0$");': '.r_ret' and '.ret' are mutually exclusive on line 1. 9PHP Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").ret("0").drop().ret_r("^0$");': '.r_ret' and '.ret' are mutually exclusive on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").ret("0").drop().ret_r("^0$");': '.r_ret' and '.ret' are mutually exclusive on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_mutually_exclusive6.phpt b/src/tests/broken_conf_mutually_exclusive6.phpt
index 4c8cf72..7f6466c 100644
--- a/src/tests/broken_conf_mutually_exclusive6.phpt
+++ b/src/tests/broken_conf_mutually_exclusive6.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive6.ini 6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive6.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").ret_r("^0$").drop();':`ret` and `param` are mutually exclusive on line 1. \ No newline at end of file 9PHP Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").ret_r("^0$").drop();':`ret` and `param` are mutually exclusive on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").param("id").value("42").ret_r("^0$").drop();':`ret` and `param` are mutually exclusive on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_mutually_exclusive7.phpt b/src/tests/broken_conf_mutually_exclusive7.phpt
index d9507f6..1d65959 100644
--- a/src/tests/broken_conf_mutually_exclusive7.phpt
+++ b/src/tests/broken_conf_mutually_exclusive7.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive7.ini 6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive7.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.function("system").ret("0").drop().allow();': The rule must either be a `drop` or `allow` one on line 1. 9PHP Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").ret("0").drop().allow();': The rule must either be a `drop` or `allow` one on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.function("system").ret("0").drop().allow();': The rule must either be a `drop` or `allow` one on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_mutually_exclusive8.phpt b/src/tests/broken_conf_mutually_exclusive8.phpt
index f7bf341..6782460 100644
--- a/src/tests/broken_conf_mutually_exclusive8.phpt
+++ b/src/tests/broken_conf_mutually_exclusive8.phpt
@@ -6,4 +6,6 @@ Broken configuration
6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive8.ini 6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive8.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Invalid configuration line: 'sp.disabled_functions.ret("0").drop();': must take a function name on line 1. \ No newline at end of file 9PHP Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.ret("0").drop();': must take a function name on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Invalid configuration line: 'sp.disabled_functions.ret("0").drop();': must take a function name on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_mutually_exclusive9.phpt b/src/tests/broken_conf_mutually_exclusive9.phpt
index adf90ad..400852d 100644
--- a/src/tests/broken_conf_mutually_exclusive9.phpt
+++ b/src/tests/broken_conf_mutually_exclusive9.phpt
@@ -6,4 +6,6 @@ Broken configuration - enabled/disabled unserialize
6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive9.ini 6sp.configuration_file={PWD}/config/broken_conf_mutually_exclusive9.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] A rule can't be enabled and disabled on line 1. 9PHP Fatal error: [snuffleupagus][config] A rule can't be enabled and disabled on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] A rule can't be enabled and disabled on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_no_cookie_action.phpt b/src/tests/broken_conf_no_cookie_action.phpt
index 49be31e..3085d9e 100644
--- a/src/tests/broken_conf_no_cookie_action.phpt
+++ b/src/tests/broken_conf_no_cookie_action.phpt
@@ -6,4 +6,6 @@ Bad config, invalid action.
6sp.configuration_file={PWD}/config/broken_conf_cookie_action.ini 6sp.configuration_file={PWD}/config/broken_conf_cookie_action.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] You must specify a at least one action to a cookie on line 1. 9PHP Fatal error: [snuffleupagus][config] You must specify a at least one action to a cookie on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] You must specify a at least one action to a cookie on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_no_cookie_name.phpt b/src/tests/broken_conf_no_cookie_name.phpt
index 10fde3e..9154124 100644
--- a/src/tests/broken_conf_no_cookie_name.phpt
+++ b/src/tests/broken_conf_no_cookie_name.phpt
@@ -6,4 +6,6 @@ Borken configuration - encrypted cookie with no name
6sp.configuration_file={PWD}/config/config_encrypted_cookies_noname.ini 6sp.configuration_file={PWD}/config/config_encrypted_cookies_noname.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] You must specify a cookie name/regexp on line 2. 9PHP Fatal error: [snuffleupagus][config] You must specify a cookie name/regexp on line 2 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] You must specify a cookie name/regexp on line 2 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_nonexisting_script.phpt b/src/tests/broken_conf_nonexisting_script.phpt
index 2af2b75..68ca001 100644
--- a/src/tests/broken_conf_nonexisting_script.phpt
+++ b/src/tests/broken_conf_nonexisting_script.phpt
@@ -8,5 +8,7 @@ sp.configuration_file={PWD}/config/broken_conf_nonexisting_script.ini
8echo 1; 8echo 1;
9?> 9?>
10--EXPECTF-- 10--EXPECTF--
11[snuffleupagus][0.0.0.0][config][error] The `script` (./non_existing_script.sh) doesn't exist on line 1. 11PHP Fatal error: [snuffleupagus][config] The `script` (./non_existing_script.sh) doesn't exist on line 1 in Unknown on line 0
121 12
13Fatal error: [snuffleupagus][config] The `script` (./non_existing_script.sh) doesn't exist on line 1 in Unknown on line 0
141 \ No newline at end of file
diff --git a/src/tests/broken_conf_quotes.phpt b/src/tests/broken_conf_quotes.phpt
index a928650..ed2c87f 100644
--- a/src/tests/broken_conf_quotes.phpt
+++ b/src/tests/broken_conf_quotes.phpt
@@ -6,5 +6,9 @@ Broken configuration - missing quote
6sp.configuration_file={PWD}/config/broken_conf_quotes.ini 6sp.configuration_file={PWD}/config/broken_conf_quotes.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] You forgot to close a bracket. 9PHP Fatal error: [snuffleupagus][config] You forgot to close a bracket. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value '_SERVER[PHP_SELF' for `var` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value '_SERVER[PHP_SELF' for `var` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] You forgot to close a bracket. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value '_SERVER[PHP_SELF' for `var` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_readonly_exec.phpt b/src/tests/broken_conf_readonly_exec.phpt
index 0f1fd54..56881da 100644
--- a/src/tests/broken_conf_readonly_exec.phpt
+++ b/src/tests/broken_conf_readonly_exec.phpt
@@ -8,5 +8,7 @@ sp.configuration_file={PWD}/config/broken_conf_readonly_exec.ini
8echo 1; 8echo 1;
9?> 9?>
10--EXPECTF-- 10--EXPECTF--
11[snuffleupagus][0.0.0.0][config][error] Trailing chars '234);' at the end of '.enable(1234);' on line 1. 11PHP Fatal error: [snuffleupagus][config] Trailing chars '234);' at the end of '.enable(1234);' on line 1 in Unknown on line 0
121 12
13Fatal error: [snuffleupagus][config] Trailing chars '234);' at the end of '.enable(1234);' on line 1 in Unknown on line 0
141 \ No newline at end of file
diff --git a/src/tests/broken_conf_samesite.phpt b/src/tests/broken_conf_samesite.phpt
index 26e525c..a7c341f 100644
--- a/src/tests/broken_conf_samesite.phpt
+++ b/src/tests/broken_conf_samesite.phpt
@@ -6,4 +6,6 @@ Bad config, invalid samesite type.
6sp.configuration_file={PWD}/config/broken_conf_cookie_samesite.ini 6sp.configuration_file={PWD}/config/broken_conf_cookie_samesite.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] nop is an invalid value to samesite (expected Lax or Strict) on line 1. 9PHP Fatal error: [snuffleupagus][config] nop is an invalid value to samesite (expected Lax or Strict) on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] nop is an invalid value to samesite (expected Lax or Strict) on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_shown_in_phpinfo.phpt b/src/tests/broken_conf_shown_in_phpinfo.phpt
index 5053ee0..0a0ceb8 100644
--- a/src/tests/broken_conf_shown_in_phpinfo.phpt
+++ b/src/tests/broken_conf_shown_in_phpinfo.phpt
@@ -17,6 +17,10 @@ if (strstr($info, 'Valid config => no') !== FALSE) {
17} 17}
18?> 18?>
19--EXPECTF-- 19--EXPECTF--
20[snuffleupagus][0.0.0.0][config][error] Failed to compile '*.': %aon line 1. 20PHP Fatal error: [snuffleupagus][config] Failed to compile '*.': %s on line 1. in Unknown on line 0
21[snuffleupagus][0.0.0.0][config][error] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1. 21PHP Fatal error: [snuffleupagus][config] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1 in Unknown on line 0
22
23Fatal error: [snuffleupagus][config] Failed to compile '*.': %s on line 1. in Unknown on line 0
24
25Fatal error: [snuffleupagus][config] '.filename_r()' is expecting a valid regexp, and not '"*."' on line 1 in Unknown on line 0
22win 26win
diff --git a/src/tests/broken_conf_truncated.phpt b/src/tests/broken_conf_truncated.phpt
index 74f3524..83d7633 100644
--- a/src/tests/broken_conf_truncated.phpt
+++ b/src/tests/broken_conf_truncated.phpt
@@ -6,4 +6,6 @@ Bad boolean value in configuration
6sp.configuration_file={PWD}/config/config_broken_conf_truncated.ini 6sp.configuration_file={PWD}/config/config_broken_conf_truncated.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][error][error] A valid string as parameter is expected on line 1. 9PHP Fatal error: [snuffleupagus][error] A valid string as parameter is expected on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][error] A valid string as parameter is expected on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_unserialize.phpt b/src/tests/broken_conf_unserialize.phpt
index b772f65..e6781b1 100644
--- a/src/tests/broken_conf_unserialize.phpt
+++ b/src/tests/broken_conf_unserialize.phpt
@@ -8,5 +8,7 @@ sp.configuration_file={PWD}/config/broken_conf_unserialize.ini
8echo 1; 8echo 1;
9?> 9?>
10--EXPECTF-- 10--EXPECTF--
11[snuffleupagus][0.0.0.0][config][error] Trailing chars '234);' at the end of '.enable(1234);' on line 1. 11PHP Fatal error: [snuffleupagus][config] Trailing chars '234);' at the end of '.enable(1234);' on line 1 in Unknown on line 0
121 12
13Fatal error: [snuffleupagus][config] Trailing chars '234);' at the end of '.enable(1234);' on line 1 in Unknown on line 0
141 \ No newline at end of file
diff --git a/src/tests/broken_conf_upload_validation.phpt b/src/tests/broken_conf_upload_validation.phpt
index 944e731..ea74a5a 100644
--- a/src/tests/broken_conf_upload_validation.phpt
+++ b/src/tests/broken_conf_upload_validation.phpt
@@ -8,5 +8,7 @@ sp.configuration_file={PWD}/config/borken_conf_upload_validation.ini
8echo 1; 8echo 1;
9?> 9?>
10--EXPECTF-- 10--EXPECTF--
11[snuffleupagus][0.0.0.0][error][error] A valid string as parameter is expected on line 1. 11PHP Fatal error: [snuffleupagus][error] A valid string as parameter is expected on line 1 in Unknown on line 0
121 12
13Fatal error: [snuffleupagus][error] A valid string as parameter is expected on line 1 in Unknown on line 0
141 \ No newline at end of file
diff --git a/src/tests/broken_conf_weird_keyword.phpt b/src/tests/broken_conf_weird_keyword.phpt
index 464800a..3a456f5 100644
--- a/src/tests/broken_conf_weird_keyword.phpt
+++ b/src/tests/broken_conf_weird_keyword.phpt
@@ -6,4 +6,6 @@ Bad config, unknown keyword
6sp.configuration_file={PWD}/config/broken_conf_weird_keyword.ini 6sp.configuration_file={PWD}/config/broken_conf_weird_keyword.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][config][error] Trailing chars '.not_a_valid_keyword("test");' at the end of '.enable().not_a_valid_keyword("test");' on line 1. 9PHP Fatal error: [snuffleupagus][config] Trailing chars '.not_a_valid_keyword("test");' at the end of '.enable().not_a_valid_keyword("test");' on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][config] Trailing chars '.not_a_valid_keyword("test");' at the end of '.enable().not_a_valid_keyword("test");' on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_wrong_quotes.phpt b/src/tests/broken_conf_wrong_quotes.phpt
index 00aaefb..35e3826 100644
--- a/src/tests/broken_conf_wrong_quotes.phpt
+++ b/src/tests/broken_conf_wrong_quotes.phpt
@@ -6,4 +6,6 @@ Configuration line with too many quotes
6sp.configuration_file={PWD}/config/broken_conf_wrong_quotes.ini 6sp.configuration_file={PWD}/config/broken_conf_wrong_quotes.ini
7--FILE-- 7--FILE--
8--EXPECT-- 8--EXPECT--
9[snuffleupagus][0.0.0.0][error][error] There is an issue with the parsing of '"\)': it doesn't look like a valid string on line 1. 9PHP Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"\)': it doesn't look like a valid string on line 1 in Unknown on line 0
10
11Fatal error: [snuffleupagus][error] There is an issue with the parsing of '"\)': it doesn't look like a valid string on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_conf_wrong_type.phpt b/src/tests/broken_conf_wrong_type.phpt
index 765c576..b7e0d28 100644
--- a/src/tests/broken_conf_wrong_type.phpt
+++ b/src/tests/broken_conf_wrong_type.phpt
@@ -6,4 +6,6 @@ Broken conf with wrong type
6sp.configuration_file={PWD}/config/broken_conf_wrong_type.ini 6sp.configuration_file={PWD}/config/broken_conf_wrong_type.ini
7--FILE-- 7--FILE--
8--EXPECTF-- 8--EXPECTF--
9[snuffleupagus][0.0.0.0][error][error] .ret_type() is expecting a valid php type ('false', 'true', 'array'. 'object', 'long', 'double', 'null', 'resource', 'reference', 'undef') on line 5. 9PHP Fatal error: [snuffleupagus][error] .ret_type() is expecting a valid php type ('false', 'true', 'array'. 'object', 'long', 'double', 'null', 'resource', 'reference', 'undef') on line 5 in Unknown on line 0
10
11Fatal error: [snuffleupagus][error] .ret_type() is expecting a valid php type ('false', 'true', 'array'. 'object', 'long', 'double', 'null', 'resource', 'reference', 'undef') on line 5 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_invalid_client_ip4.phpt b/src/tests/broken_invalid_client_ip4.phpt
index cd62008..e8a5260 100644
--- a/src/tests/broken_invalid_client_ip4.phpt
+++ b/src/tests/broken_invalid_client_ip4.phpt
@@ -13,7 +13,4 @@ sp.configuration_file={PWD}/config/disabled_functions_cidr.ini
13strpos("1337", "1"); 13strpos("1337", "1");
14?> 14?>
15--EXPECTF-- 15--EXPECTF--
16[snuffleupagus][xyz][cidr_match][error] Weird ip (xyz) family 16Fatal error: [snuffleupagus][cidr_match] Weird ip (xyz) family in %a/broken_invalid_client_ip4.php on line 2 \ No newline at end of file
17[snuffleupagus][xyz][cidr_match][error] Weird ip (xyz) family
18[snuffleupagus][xyz][cidr_match][error] Weird ip (xyz) family
19[snuffleupagus][xyz][cidr_match][error] Weird ip (xyz) family
diff --git a/src/tests/broken_regexp.phpt b/src/tests/broken_regexp.phpt
index 7c7ac9c..85b9ef3 100644
--- a/src/tests/broken_regexp.phpt
+++ b/src/tests/broken_regexp.phpt
@@ -6,5 +6,9 @@ Broken regexp
6sp.configuration_file={PWD}/config/broken_regexp.ini 6sp.configuration_file={PWD}/config/broken_regexp.ini
7--FILE-- 7--FILE--
8--EXPECTF-- 8--EXPECTF--
9[snuffleupagus][0.0.0.0][config][error] Failed to compile '^$[': %aon line 1. 9PHP Fatal error: [snuffleupagus][config] Failed to compile '^$[': missing terminating ] for character class on line 1. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] '.value_r()' is expecting a valid regexp, and not '"^$["' on line 1. 10PHP Fatal error: [snuffleupagus][config] '.value_r()' is expecting a valid regexp, and not '"^$["' on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Failed to compile '^$[': missing terminating ] for character class on line 1. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] '.value_r()' is expecting a valid regexp, and not '"^$["' on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/broken_unmatching_brackets.phpt b/src/tests/broken_unmatching_brackets.phpt
index ee2bc4d..3825dcd 100644
--- a/src/tests/broken_unmatching_brackets.phpt
+++ b/src/tests/broken_unmatching_brackets.phpt
@@ -6,5 +6,9 @@ Broken configuration - unmatching brackets
6sp.configuration_file={PWD}/config/config_unmatching_brackets.ini 6sp.configuration_file={PWD}/config/config_unmatching_brackets.ini
7--FILE-- 7--FILE--
8--EXPECTF-- 8--EXPECTF--
9[snuffleupagus][0.0.0.0][config][error] Invalid `]` position. 9PHP Fatal error: [snuffleupagus][config] Invalid `]` position. in Unknown on line 0
10[snuffleupagus][0.0.0.0][config][error] Invalid value 'arr[b]]]]]' for `param` on line 1. 10PHP Fatal error: [snuffleupagus][config] Invalid value 'arr[b]]]]]' for `param` on line 1 in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Invalid `]` position. in Unknown on line 0
13
14Fatal error: [snuffleupagus][config] Invalid value 'arr[b]]]]]' for `param` on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/crypt_session_invalid.phpt b/src/tests/crypt_session_invalid.phpt
index 687a407..b7880db 100644
--- a/src/tests/crypt_session_invalid.phpt
+++ b/src/tests/crypt_session_invalid.phpt
@@ -21,4 +21,4 @@ session_start(); // Re start the session, It will read and decrypt the non em
21var_dump($_SESSION); // Dump the session 21var_dump($_SESSION); // Dump the session
22?> 22?>
23--EXPECTF-- 23--EXPECTF--
24[snuffleupagus][127.0.0.2][cookie_encryption][drop] Something went wrong with the decryption of the session. \ No newline at end of file 24Fatal error: [snuffleupagus][cookie_encryption] Something went wrong with the decryption of the session in %a/src/tests/crypt_session_invalid.php on line 9 \ No newline at end of file
diff --git a/src/tests/deny_writable_execution.phpt b/src/tests/deny_writable_execution.phpt
index c399d35..916328e 100644
--- a/src/tests/deny_writable_execution.phpt
+++ b/src/tests/deny_writable_execution.phpt
@@ -31,8 +31,6 @@ chmod("$dir/writable_file.txt", 0777);
31include "$dir/non_writable_file.txt"; 31include "$dir/non_writable_file.txt";
32include "$dir/writable_file.txt"; 32include "$dir/writable_file.txt";
33?> 33?>
34--EXPECTF--
35[snuffleupagus][0.0.0.0][readonly_exec][drop] Attempted execution of a writable file (%a/tests/deny_writable_execution.php).
36--CLEAN-- 34--CLEAN--
37<?php 35<?php
38$dir = __DIR__; 36$dir = __DIR__;
@@ -41,3 +39,5 @@ chmod("$dir/writable_file.txt", 0777);
41unlink("$dir/non_writable_file.txt"); 39unlink("$dir/non_writable_file.txt");
42unlink("$dir/writable_file.txt"); 40unlink("$dir/writable_file.txt");
43?> 41?>
42--EXPECTF--
43Fatal error: [snuffleupagus][readonly_exec] Attempted execution of a writable file (%a/deny_writable_execution.php). in %a/deny_writable_execution.php on line 2
diff --git a/src/tests/deny_writable_execution_disabled.phpt b/src/tests/deny_writable_execution_disabled.phpt
index 6d1233b..dd01f01 100644
--- a/src/tests/deny_writable_execution_disabled.phpt
+++ b/src/tests/deny_writable_execution_disabled.phpt
@@ -29,4 +29,4 @@ chmod("$dir/non_writable_file.txt", 0777);
29chmod("$dir/writable_file.txt", 0777); 29chmod("$dir/writable_file.txt", 0777);
30unlink("$dir/non_writable_file.txt"); 30unlink("$dir/non_writable_file.txt");
31unlink("$dir/writable_file.txt"); 31unlink("$dir/writable_file.txt");
32?> \ No newline at end of file 32?>
diff --git a/src/tests/deny_writable_execution_simulation.phpt b/src/tests/deny_writable_execution_simulation.phpt
index d1ccb7c..7f3546a 100644
--- a/src/tests/deny_writable_execution_simulation.phpt
+++ b/src/tests/deny_writable_execution_simulation.phpt
@@ -32,10 +32,6 @@ chmod("$dir/non_writable_file.txt", 0400);
32include "$dir/writable_file.txt"; 32include "$dir/writable_file.txt";
33include "$dir/non_writable_file.txt"; 33include "$dir/non_writable_file.txt";
34?> 34?>
35--EXPECTF--
36[snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/writable_file.txt).
37Code execution within a writable file.
38Code execution within a non-writable file.
39--CLEAN-- 35--CLEAN--
40<?php 36<?php
41$dir = __DIR__; 37$dir = __DIR__;
@@ -44,3 +40,11 @@ chmod("$dir/writable_file.txt", 0777);
44unlink("$dir/non_writable_file.txt"); 40unlink("$dir/non_writable_file.txt");
45unlink("$dir/writable_file.txt"); 41unlink("$dir/writable_file.txt");
46?> 42?>
43--EXPECTF--
44Warning: [snuffleupagus][readonly_exec] Attempted execution of a writable file (%a/src/tests/deny_writable_execution_simulation.php). in %a/src/tests/deny_writable_execution_simulation.php on line 2
45
46Warning: [snuffleupagus][readonly_exec] Attempted execution of a writable file (%a/src/tests/writable_file.txt). in %a/src/tests/deny_writable_execution_simulation.php on line 12
47
48Warning: [snuffleupagus][readonly_exec] Attempted execution of a writable file (%a/src/tests/writable_file.txt). in %a/src/tests/writable_file.txt on line 1
49Code execution within a writable file.
50Code execution within a non-writable file.
diff --git a/src/tests/disabled_function_echo.phpt b/src/tests/disabled_function_echo.phpt
index a884e4a..21e2002 100644
--- a/src/tests/disabled_function_echo.phpt
+++ b/src/tests/disabled_function_echo.phpt
@@ -15,4 +15,5 @@ test("oops");
15?> 15?>
16--CLEAN-- 16--CLEAN--
17--EXPECTF-- 17--EXPECTF--
18qwerty[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/tests/disabled_function_echo.php:3. 18qwerty
19Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'echo' in %a/disabled_function_echo.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_function_echo_2.phpt b/src/tests/disabled_function_echo_2.phpt
index 20dbee4..66cace3 100644
--- a/src/tests/disabled_function_echo_2.phpt
+++ b/src/tests/disabled_function_echo_2.phpt
@@ -11,4 +11,5 @@ echo "1", "oops";
11?> 11?>
12--CLEAN-- 12--CLEAN--
13--EXPECTF-- 13--EXPECTF--
14qwe1[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/tests/disabled_function_echo_2.php:3. 14qwe1
15Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'echo' in %a/disabled_function_echo_2.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_function_echo_local_var.phpt b/src/tests/disabled_function_echo_local_var.phpt
index bfa3c8c..300f38e 100644
--- a/src/tests/disabled_function_echo_local_var.phpt
+++ b/src/tests/disabled_function_echo_local_var.phpt
@@ -17,4 +17,5 @@ test();
17--CLEAN-- 17--CLEAN--
18--EXPECTF-- 18--EXPECTF--
193 193
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/tests/disabled_function_echo_local_var.php:3. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'echo' in %a/disabled_function_echo_local_var.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var.phpt b/src/tests/disabled_function_local_var.phpt
index 2eb0c53..99b2b08 100644
--- a/src/tests/disabled_function_local_var.phpt
+++ b/src/tests/disabled_function_local_var.phpt
@@ -21,4 +21,5 @@ test();
21Value of a: 1338 21Value of a: 1338
222 222
23Value of a: 1337 23Value of a: 1337
24[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var.php:%d. \ No newline at end of file 24
25Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var.php on line 4 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var_10.phpt b/src/tests/disabled_function_local_var_10.phpt
index d55d590..4902972 100644
--- a/src/tests/disabled_function_local_var_10.phpt
+++ b/src/tests/disabled_function_local_var_10.phpt
@@ -41,4 +41,5 @@ array(2) {
41 } 41 }
42 } 42 }
43} 43}
44[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_10.php:%d. 44
45Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_10.php on line 7 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var_2.phpt b/src/tests/disabled_function_local_var_2.phpt
index aff5ed5..5b21d07 100644
--- a/src/tests/disabled_function_local_var_2.phpt
+++ b/src/tests/disabled_function_local_var_2.phpt
@@ -43,4 +43,5 @@ array(2) {
43 [123]=> 43 [123]=>
44 string(5) "block" 44 string(5) "block"
45} 45}
46[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_2.php:%d. 46
47Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_2.php on line 4 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var_3.phpt b/src/tests/disabled_function_local_var_3.phpt
index 94b9f28..597be1d 100644
--- a/src/tests/disabled_function_local_var_3.phpt
+++ b/src/tests/disabled_function_local_var_3.phpt
@@ -42,4 +42,5 @@ array(2) {
42 string(5) "block" 42 string(5) "block"
43 } 43 }
44} 44}
45[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_3.php:%d. 45
46Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_3.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var_4.phpt b/src/tests/disabled_function_local_var_4.phpt
index 55e46cb..b441576 100644
--- a/src/tests/disabled_function_local_var_4.phpt
+++ b/src/tests/disabled_function_local_var_4.phpt
@@ -53,4 +53,5 @@ test();
53--EXPECTF-- 53--EXPECTF--
54Valeur: valeur de a 54Valeur: valeur de a
55Valeur: valeur de apres 55Valeur: valeur de apres
56[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_4.php:%d. 56
57Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_4.php on line 36 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var_5.phpt b/src/tests/disabled_function_local_var_5.phpt
index 4b4a59c..602e96e 100644
--- a/src/tests/disabled_function_local_var_5.phpt
+++ b/src/tests/disabled_function_local_var_5.phpt
@@ -30,4 +30,5 @@ object(stdClass)#1 (1) {
30 ["zxc"]=> 30 ["zxc"]=>
31 string(16) "not a good value" 31 string(16) "not a good value"
32} 32}
33[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_5.php:%d. 33
34Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_5.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var_6.phpt b/src/tests/disabled_function_local_var_6.phpt
index b87936b..1866353 100644
--- a/src/tests/disabled_function_local_var_6.phpt
+++ b/src/tests/disabled_function_local_var_6.phpt
@@ -28,4 +28,5 @@ class test_object {
28?> 28?>
29--EXPECTF-- 29--EXPECTF--
30Valeur: no good 30Valeur: no good
31[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_6.php:%d. 31
32Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_6.php on line 4 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var_7.phpt b/src/tests/disabled_function_local_var_7.phpt
index e35f4a1..e615a80 100644
--- a/src/tests/disabled_function_local_var_7.phpt
+++ b/src/tests/disabled_function_local_var_7.phpt
@@ -28,4 +28,5 @@ class test_object {
28?> 28?>
29--EXPECTF-- 29--EXPECTF--
30Valeur: qwerty 30Valeur: qwerty
31[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_7.php:%d. 31
32Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_7.php on line 4 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var_8.phpt b/src/tests/disabled_function_local_var_8.phpt
index 57c4a50..1f1a0dc 100644
--- a/src/tests/disabled_function_local_var_8.phpt
+++ b/src/tests/disabled_function_local_var_8.phpt
@@ -17,4 +17,5 @@ namespace asd {
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19Valeur: qwerty 19Valeur: qwerty
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_8.php:%d. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_8.php on line 8 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var_9.phpt b/src/tests/disabled_function_local_var_9.phpt
index fd2fd65..458d878 100644
--- a/src/tests/disabled_function_local_var_9.phpt
+++ b/src/tests/disabled_function_local_var_9.phpt
@@ -17,4 +17,5 @@ namespace asd {
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19Valeur: asdfgh 19Valeur: asdfgh
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_9.php:%d. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_9.php on line 8 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var_const.phpt b/src/tests/disabled_function_local_var_const.phpt
index 3f509cd..8d9d58a 100644
--- a/src/tests/disabled_function_local_var_const.phpt
+++ b/src/tests/disabled_function_local_var_const.phpt
@@ -11,4 +11,4 @@ define("MY_CONST", $a);
11strlen("test"); 11strlen("test");
12?> 12?>
13--EXPECTF-- 13--EXPECTF--
14[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_const.php:4. 14Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_const.php on line 4 \ No newline at end of file
diff --git a/src/tests/disabled_function_local_var_obj.phpt b/src/tests/disabled_function_local_var_obj.phpt
index 292f6f6..29d57cc 100644
--- a/src/tests/disabled_function_local_var_obj.phpt
+++ b/src/tests/disabled_function_local_var_obj.phpt
@@ -22,4 +22,5 @@ echo strlen($test->$arg) . "\n";
22?> 22?>
23--EXPECTF-- 23--EXPECTF--
243 243
25[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_function_local_var_obj.php:%d. 25
26Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_obj.php on line 14 \ No newline at end of file
diff --git a/src/tests/disabled_function_param.phpt b/src/tests/disabled_function_param.phpt
index e006a4b..9b8b942 100644
--- a/src/tests/disabled_function_param.phpt
+++ b/src/tests/disabled_function_param.phpt
@@ -16,4 +16,5 @@ qweqwe(Array(2));
16?> 16?>
17--EXPECTF-- 17--EXPECTF--
18OK 18OK
19[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'qweqwe' in %a/tests/disabled_function_param.php:%d, because its argument '$asd' content (2) matched a rule. 19
20Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'qweqwe', because its argument '$asd' content (2) matched a rule in %a/disabled_function_param.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_function_print.phpt b/src/tests/disabled_function_print.phpt
index fc05360..a8b10b4 100644
--- a/src/tests/disabled_function_print.phpt
+++ b/src/tests/disabled_function_print.phpt
@@ -15,4 +15,5 @@ test("oops");
15?> 15?>
16--CLEAN-- 16--CLEAN--
17--EXPECTF-- 17--EXPECTF--
18qwerty[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'echo' in %a/tests/disabled_function_print.php:3. 18qwerty
19Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'echo' in %a/disabled_function_print.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_function_super_global_var.phpt b/src/tests/disabled_function_super_global_var.phpt
index e59c944..771052a 100644
--- a/src/tests/disabled_function_super_global_var.phpt
+++ b/src/tests/disabled_function_super_global_var.phpt
@@ -17,4 +17,5 @@ test();
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
194 194
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %s/tests/disabled_function_super_global_var.php:%d. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/src/tests/disabled_function_super_global_var.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions.phpt b/src/tests/disabled_functions.phpt
index a7603db..48d3724 100644
--- a/src/tests/disabled_functions.phpt
+++ b/src/tests/disabled_functions.phpt
@@ -13,5 +13,4 @@ var_dump("this is a super test");
13echo strpos("pouet", "o"); 13echo strpos("pouet", "o");
14?> 14?>
15--EXPECTF-- 15--EXPECTF--
16[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/tests/disabled_functions.php:2. 16Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/disabled_functions.php on line 2 \ No newline at end of file
17
diff --git a/src/tests/disabled_functions_callback_called_file_r.phpt b/src/tests/disabled_functions_callback_called_file_r.phpt
index 7f3804b..9c25f9d 100644
--- a/src/tests/disabled_functions_callback_called_file_r.phpt
+++ b/src/tests/disabled_functions_callback_called_file_r.phpt
@@ -30,10 +30,10 @@ include "$dir/myfunc_callback.php";
30echo test('test_callback'); 30echo test('test_callback');
31 31
32?> 32?>
33--EXPECTF--
34[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'test_callback' in %a/myfunc_callback.php:%d.
35--CLEAN-- 33--CLEAN--
36<?php 34<?php
37$dir = __DIR__; 35$dir = __DIR__;
38@unlink("$dir/myfunc_callback.php"); 36@unlink("$dir/myfunc_callback.php");
39?> 37?>
38--EXPECTF--
39Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'test_callback' in %a/myfunc_callback.php on line 4
diff --git a/src/tests/disabled_functions_called_file_r.phpt b/src/tests/disabled_functions_called_file_r.phpt
index 52a2158..b361dc8 100644
--- a/src/tests/disabled_functions_called_file_r.phpt
+++ b/src/tests/disabled_functions_called_file_r.phpt
@@ -25,10 +25,10 @@ include "$dir/myfunc.php";
25test(); 25test();
26 26
27?> 27?>
28--EXPECTF--
29[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'test' in %a/disabled_functions_called_file_r.php:18.
30--CLEAN-- 28--CLEAN--
31<?php 29<?php
32$dir = __DIR__; 30$dir = __DIR__;
33@unlink("$dir/myfunc.php"); 31@unlink("$dir/myfunc.php");
34?> 32?>
33--EXPECTF--
34Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'test' in %a/myfunc.php on line 3
diff --git a/src/tests/disabled_functions_chain.phpt b/src/tests/disabled_functions_chain.phpt
index beb4c67..5aee085 100644
--- a/src/tests/disabled_functions_chain.phpt
+++ b/src/tests/disabled_functions_chain.phpt
@@ -23,4 +23,5 @@ echo "I'm after the call to outer\n";
23--EXPECTF-- 23--EXPECTF--
24I'm before the call to outer 24I'm before the call to outer
25I'm in the outer function, before the call! 25I'm in the outer function, before the call!
26[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'outer>inner' in %a/disabled_functions_chain.php:%d. \ No newline at end of file 26
27Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'outer>inner' in %a/disabled_functions_chain.php on line 5 \ No newline at end of file
diff --git a/src/tests/disabled_functions_chain_call_user_func.phpt b/src/tests/disabled_functions_chain_call_user_func.phpt
index f9b0dd9..90c1f32 100644
--- a/src/tests/disabled_functions_chain_call_user_func.phpt
+++ b/src/tests/disabled_functions_chain_call_user_func.phpt
@@ -23,4 +23,5 @@ echo "I'm after the call to outer\n";
23--EXPECTF-- 23--EXPECTF--
24I'm before the call to outer 24I'm before the call to outer
25I'm in the outer function, before the call! 25I'm in the outer function, before the call!
26[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'outer>inner' in %a/disabled_functions_chain_call_user_func.php:%d. \ No newline at end of file 26
27Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'outer>inner' in %a/disabled_functions_chain_call_user_func.php on line 5 \ No newline at end of file
diff --git a/src/tests/disabled_functions_chain_call_user_func_ret.phpt b/src/tests/disabled_functions_chain_call_user_func_ret.phpt
index e11b9ab..44c9b24 100644
--- a/src/tests/disabled_functions_chain_call_user_func_ret.phpt
+++ b/src/tests/disabled_functions_chain_call_user_func_ret.phpt
@@ -21,6 +21,6 @@ echo one('matching') . "\n";
21echo one('still not matching') . "\n"; 21echo one('still not matching') . "\n";
22 22
23?> 23?>
24--EXPECTF--
25--XFAIL-- 24--XFAIL--
25--EXPECTF--
26Match on ret is broken :/ 26Match on ret is broken :/
diff --git a/src/tests/disabled_functions_cidr.phpt b/src/tests/disabled_functions_cidr.phpt
index 2226d03..dcd4189 100644
--- a/src/tests/disabled_functions_cidr.phpt
+++ b/src/tests/disabled_functions_cidr.phpt
@@ -13,4 +13,4 @@ sp.configuration_file={PWD}/config/disabled_functions_cidr.ini
13system("echo 42"); 13system("echo 42");
14?> 14?>
15--EXPECTF-- 15--EXPECTF--
16[snuffleupagus][127.0.0.1][disabled_function][drop] Aborted execution on call of the function 'system' in %a/tests/disabled_functions_cidr.php:2. 16Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/disabled_functions_cidr.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_cidr_6.phpt b/src/tests/disabled_functions_cidr_6.phpt
index a862e76..92e542c 100644
--- a/src/tests/disabled_functions_cidr_6.phpt
+++ b/src/tests/disabled_functions_cidr_6.phpt
@@ -14,4 +14,4 @@ strpos("a", "b");
14printf(1337); 14printf(1337);
15?> 15?>
16--EXPECTF-- 16--EXPECTF--
17[snuffleupagus][2001:0db8:0000:0000:0000:ff00:0042:8328][disabled_function][drop] Aborted execution on call of the function 'strpos' in %a/tests/disabled_functions_cidr_6.php:2. 17Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strpos' in %a/disabled_functions_cidr_6.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_die.phpt b/src/tests/disabled_functions_die.phpt
index 3fa8c4b..bfabaee 100644
--- a/src/tests/disabled_functions_die.phpt
+++ b/src/tests/disabled_functions_die.phpt
@@ -8,6 +8,6 @@ sp.configuration_file={PWD}/config/disabled_functions_die.ini
8<?php 8<?php
9die('OMG'); 9die('OMG');
10?> 10?>
11--EXPECTF--
12[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'die' in %a/tests/disabled_functions_die.php:%d.
13--XFAIL-- 11--XFAIL--
12--EXPECTF--
13Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'die' in %a/disabled_function_echo.php on line 3
diff --git a/src/tests/disabled_functions_eval.phpt b/src/tests/disabled_functions_eval.phpt
index 94d9be0..a5d1489 100644
--- a/src/tests/disabled_functions_eval.phpt
+++ b/src/tests/disabled_functions_eval.phpt
@@ -11,4 +11,4 @@ eval('$var = 1337 + 1337;');
11print("Variable: $var\n"); 11print("Variable: $var\n");
12?> 12?>
13--EXPECTF-- 13--EXPECTF--
14[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'eval' in %a/tests/disabled_functions_eval.php(%d) : eval()'d code:%d. 14Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'eval' in %a/disabled_functions_eval.php(3) : eval()'d code on line 1 \ No newline at end of file
diff --git a/src/tests/disabled_functions_eval_filename.phpt b/src/tests/disabled_functions_eval_filename.phpt
index e01ecac..4491e9e 100644
--- a/src/tests/disabled_functions_eval_filename.phpt
+++ b/src/tests/disabled_functions_eval_filename.phpt
@@ -11,4 +11,4 @@ eval('$var = 1337 + 1337;');
11print("Variable: $var\n"); 11print("Variable: $var\n");
12?> 12?>
13--EXPECTF-- 13--EXPECTF--
14[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'eval' in %a/tests/disabled_functions_eval_filename.php(%d) : eval()'d code:%d. 14Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'eval' in %a/disabled_functions_eval_filename.php(3) : eval()'d code on line 1 \ No newline at end of file
diff --git a/src/tests/disabled_functions_eval_simulation.phpt b/src/tests/disabled_functions_eval_simulation.phpt
index c3d880f..2df04a9 100644
--- a/src/tests/disabled_functions_eval_simulation.phpt
+++ b/src/tests/disabled_functions_eval_simulation.phpt
@@ -11,5 +11,5 @@ eval('$var = 1337 + 1337;');
11print("Variable: $var\n"); 11print("Variable: $var\n");
12?> 12?>
13--EXPECTF-- 13--EXPECTF--
14[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'eval' in %a/tests/disabled_functions_eval_simulation.php(%d) : eval()'d code:%d. 14Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'eval' in %a/disabled_functions_eval_simulation.php(3) : eval()'d code on line 1
15Variable: 2674 15Variable: 2674 \ No newline at end of file
diff --git a/src/tests/disabled_functions_eval_user.phpt b/src/tests/disabled_functions_eval_user.phpt
index 421a485..30ba1d5 100644
--- a/src/tests/disabled_functions_eval_user.phpt
+++ b/src/tests/disabled_functions_eval_user.phpt
@@ -15,4 +15,4 @@ eval('$a = my_func();');
15echo '$a = ' . $a . "\n"; 15echo '$a = ' . $a . "\n";
16?> 16?>
17--EXPECTF-- 17--EXPECTF--
18[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'my_func' in %a/tests/disabled_functions_eval_user.php:3. 18Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'my_func' in %a/disabled_functions_eval_user.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_exit.phpt b/src/tests/disabled_functions_exit.phpt
index 1c15790..b204fcd 100644
--- a/src/tests/disabled_functions_exit.phpt
+++ b/src/tests/disabled_functions_exit.phpt
@@ -8,6 +8,6 @@ sp.configuration_file={PWD}/config/disabled_functions_exit.ini
8<?php 8<?php
9exit('OMG'); 9exit('OMG');
10?> 10?>
11--EXPECTF--
12[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'exit' in %a/tests/disabled_functions_exit.php:%d.
13--XFAIL-- 11--XFAIL--
12--EXPECTF--
13Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'exit' in %a/disabled_function_echo.php on line 3
diff --git a/src/tests/disabled_functions_filename_r.phpt b/src/tests/disabled_functions_filename_r.phpt
index f38468a..0eb5f7d 100644
--- a/src/tests/disabled_functions_filename_r.phpt
+++ b/src/tests/disabled_functions_filename_r.phpt
@@ -11,4 +11,5 @@ shell_exec("echo 43");
11?> 11?>
12--EXPECTF-- 12--EXPECTF--
1342 1342
14[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'shell_exec' in %a/tests/disabled_functions_filename_r.php:%d. \ No newline at end of file 14
15Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'shell_exec' in %a/disabled_functions_filename_r.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_include_once.phpt b/src/tests/disabled_functions_include_once.phpt
index eaf07ce..26b7ecc 100644
--- a/src/tests/disabled_functions_include_once.phpt
+++ b/src/tests/disabled_functions_include_once.phpt
@@ -13,14 +13,15 @@ include_once $dir . '/test.bla';
13include_once $dir . '/test.sim'; 13include_once $dir . '/test.sim';
14echo "1337\n"; 14echo "1337\n";
15?> 15?>
16--EXPECTF--
17BLA
18[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'include_once' in %a/disabled_functions_include_once.php:%d, because its argument 'inclusion path' content (%a/test.sim) matched a rule.
19MEH
201337
21--CLEAN-- 16--CLEAN--
22<?php 17<?php
23$dir = __DIR__; 18$dir = __DIR__;
24unlink($dir . '/test.bla'); 19unlink($dir . '/test.bla');
25unlink($dir . '/test.sim'); 20unlink($dir . '/test.sim');
26?> 21?>
22--EXPECTF--
23BLA
24
25Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'include_once', because its argument 'inclusion path' content (%a/test.sim) matched a rule in %a/disabled_functions_include_once.php on line 6
26MEH
271337
diff --git a/src/tests/disabled_functions_include_simulation.phpt b/src/tests/disabled_functions_include_simulation.phpt
index 8348233..199e91a 100644
--- a/src/tests/disabled_functions_include_simulation.phpt
+++ b/src/tests/disabled_functions_include_simulation.phpt
@@ -13,14 +13,15 @@ include $dir . '/test.bla';
13include $dir . '/test.sim'; 13include $dir . '/test.sim';
14echo "1337\n"; 14echo "1337\n";
15?> 15?>
16--EXPECTF--
17BLA
18[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'include' in %a/disabled_functions_include_simulation.php:%d, because its argument 'inclusion path' content (%a/test.sim) matched a rule.
19MEH
201337
21--CLEAN-- 16--CLEAN--
22<?php 17<?php
23$dir = __DIR__; 18$dir = __DIR__;
24unlink($dir . '/test.bla'); 19unlink($dir . '/test.bla');
25unlink($dir . '/test.sim'); 20unlink($dir . '/test.sim');
26?> 21?>
22--EXPECTF--
23BLA
24
25Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'include', because its argument 'inclusion path' content (%a/test.sim) matched a rule in %a/disabled_functions_include_simulation.php on line 6
26MEH
271337
diff --git a/src/tests/disabled_functions_local_var_array.phpt b/src/tests/disabled_functions_local_var_array.phpt
index 91c74d5..2c55a6e 100644
--- a/src/tests/disabled_functions_local_var_array.phpt
+++ b/src/tests/disabled_functions_local_var_array.phpt
@@ -17,4 +17,5 @@ foo($a);
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19cccc 19cccc
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/tests/disabled_functions_local_var_array.php:3. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo' in %a/disabled_functions_local_var_array.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_local_var_array_key.phpt b/src/tests/disabled_functions_local_var_array_key.phpt
index f87d56f..777611b 100644
--- a/src/tests/disabled_functions_local_var_array_key.phpt
+++ b/src/tests/disabled_functions_local_var_array_key.phpt
@@ -17,4 +17,5 @@ foo($a);
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19cccc 19cccc
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/tests/disabled_functions_local_var_array_key.php:3. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo' in %a/disabled_functions_local_var_array_key.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_mb.phpt b/src/tests/disabled_functions_mb.phpt
index 949fc5d..a2fd99e 100644
--- a/src/tests/disabled_functions_mb.phpt
+++ b/src/tests/disabled_functions_mb.phpt
@@ -9,4 +9,4 @@ sp.configuration_file={PWD}/config/disabled_functions_mb.ini
9echo strlen("id"); 9echo strlen("id");
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/tests/disabled_functions_mb.php:2. 12Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_functions_mb.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_method.phpt b/src/tests/disabled_functions_method.phpt
index 67f5689..72e633e 100644
--- a/src/tests/disabled_functions_method.phpt
+++ b/src/tests/disabled_functions_method.phpt
@@ -24,4 +24,4 @@ $c->method2("paf");
24$c->method3("pouet"); 24$c->method3("pouet");
25?> 25?>
26--EXPECTF-- 26--EXPECTF--
27[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'AwesomeClass::method1' in %a/tests/disabled_functions_method.php:4. 27Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'AwesomeClass::method1' in %a/disabled_functions_method.php on line 4 \ No newline at end of file
diff --git a/src/tests/disabled_functions_name_r.phpt b/src/tests/disabled_functions_name_r.phpt
index 7c5a8b0..1ecee14 100644
--- a/src/tests/disabled_functions_name_r.phpt
+++ b/src/tests/disabled_functions_name_r.phpt
@@ -12,4 +12,5 @@ system("echo 1337");
12--EXPECTF-- 12--EXPECTF--
1342 1342
141337 141337
15[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'system' in %a/disabled_functions_name_r.php:3, because the function returned '1337', which matched a rule. 15
16Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'system', because the function returned '1337', which matched a rule in %a/disabled_functions_name_r.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_name_regexp_type.phpt b/src/tests/disabled_functions_name_regexp_type.phpt
index 249afc0..2ceadbf 100644
--- a/src/tests/disabled_functions_name_regexp_type.phpt
+++ b/src/tests/disabled_functions_name_regexp_type.phpt
@@ -13,4 +13,5 @@ echo strcmp([1], "pouet") . "\n";
13--EXPECTF-- 13--EXPECTF--
140 140
15-1 15-1
16[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strcmp' in %a/disabled_functions_name_regexp_type.php:4, because its argument 'str1' content (?) matched a rule. 16
17Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strcmp', because its argument 'str1' content (?) matched a rule in %a/disabled_functions_name_regexp_type.php on line 4 \ No newline at end of file
diff --git a/src/tests/disabled_functions_name_type.phpt b/src/tests/disabled_functions_name_type.phpt
index a82f804..2d14d12 100644
--- a/src/tests/disabled_functions_name_type.phpt
+++ b/src/tests/disabled_functions_name_type.phpt
@@ -11,4 +11,5 @@ echo strcmp([1,23], "pouet") . "\n";
11?> 11?>
12--EXPECTF-- 12--EXPECTF--
130 130
14[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strcmp' in %a/disabled_functions_name_type.php:%d, because its argument '$str1' content (ARRAY) matched a rule. 14
15Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strcmp', because its argument '$str1' content (ARRAY) matched a rule in %a/disabled_functions_name_type.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_namespace.phpt b/src/tests/disabled_functions_namespace.phpt
index 1641599..1acfce2 100644
--- a/src/tests/disabled_functions_namespace.phpt
+++ b/src/tests/disabled_functions_namespace.phpt
@@ -27,4 +27,4 @@ my_function();
27} 27}
28?> 28?>
29--EXPECTF-- 29--EXPECTF--
30[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strcmp' in %a/disabled_functions_namespace.php:%d. 30Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strcmp' in %a/disabled_functions_namespace.php on line 16 \ No newline at end of file
diff --git a/src/tests/disabled_functions_nul_byte.phpt b/src/tests/disabled_functions_nul_byte.phpt
index aaeade1..984541d 100644
--- a/src/tests/disabled_functions_nul_byte.phpt
+++ b/src/tests/disabled_functions_nul_byte.phpt
@@ -11,4 +11,4 @@ system("id");
11 11
12?> 12?>
13--EXPECTF-- 13--EXPECTF--
14[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/tests/disabled_functions_nul_byte.php:2, because its argument '$command' content (0id) matched a rule. 14Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system', because its argument '$command' content (0id) matched a rule in %a/disabled_functions_nul_byte.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param.phpt b/src/tests/disabled_functions_param.phpt
index 0ef7ff6..fb6dcbb 100644
--- a/src/tests/disabled_functions_param.phpt
+++ b/src/tests/disabled_functions_param.phpt
@@ -15,4 +15,4 @@ strcmp("bla", "ble");
15strncmp("bla", "ble", 2); 15strncmp("bla", "ble", 2);
16?> 16?>
17--EXPECTF-- 17--EXPECTF--
18[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_functions_param.php:2, because its argument '$command' content (id) matched the rule '1'. 18Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system', because its argument '$command' content (id) matched the rule '1' in %a/disabled_functions_param.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_alias.phpt b/src/tests/disabled_functions_param_alias.phpt
index 5cab1f7..9c249d9 100644
--- a/src/tests/disabled_functions_param_alias.phpt
+++ b/src/tests/disabled_functions_param_alias.phpt
@@ -10,4 +10,4 @@ system("id");
10shell_exec("id"); 10shell_exec("id");
11?> 11?>
12--EXPECTF-- 12--EXPECTF--
13[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/tests/disabled_functions_param_alias.php:2, because of the the rule '1'. 13Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system', because of the the rule '1' in %a/disabled_functions_param_alias.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_allow.phpt b/src/tests/disabled_functions_param_allow.phpt
index 9d0d91b..f570415 100644
--- a/src/tests/disabled_functions_param_allow.phpt
+++ b/src/tests/disabled_functions_param_allow.phpt
@@ -11,4 +11,5 @@ system("id");
11?> 11?>
12--EXPECTF-- 12--EXPECTF--
13win 13win
14[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/tests/disabled_functions_param_allow.php:3. \ No newline at end of file 14
15Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/disabled_functions_param_allow.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_array.phpt b/src/tests/disabled_functions_param_array.phpt
index 8bad4e0..37a02e0 100644
--- a/src/tests/disabled_functions_param_array.phpt
+++ b/src/tests/disabled_functions_param_array.phpt
@@ -21,4 +21,5 @@ foo($a);
21--EXPECTF-- 21--EXPECTF--
22test1 22test1
23abcde 23abcde
24[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/disabled_functions_param_array.php:3, because its argument '$arr' content (abcd) matched the rule '1'. 24
25Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo', because its argument '$arr' content (abcd) matched the rule '1' in %a/disabled_functions_param_array.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_array_deref.phpt b/src/tests/disabled_functions_param_array_deref.phpt
index e88ee2b..3305965 100644
--- a/src/tests/disabled_functions_param_array_deref.phpt
+++ b/src/tests/disabled_functions_param_array_deref.phpt
@@ -22,4 +22,5 @@ foo($a);
22--EXPECTF-- 22--EXPECTF--
23eee 23eee
24abcdef 24abcdef
25[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/tests/disabled_functions_param_array_deref.php:3, because its argument '$arr' content (abcdef) matched the rule '2'. 25
26Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo', because its argument '$arr' content (abcdef) matched the rule '2' in %a/disabled_functions_param_array_deref.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_array_no_value.phpt b/src/tests/disabled_functions_param_array_no_value.phpt
index 01b1a8c..dfb67a2 100644
--- a/src/tests/disabled_functions_param_array_no_value.phpt
+++ b/src/tests/disabled_functions_param_array_no_value.phpt
@@ -19,4 +19,5 @@ foo($a);
19?> 19?>
20--EXPECTF-- 20--EXPECTF--
21cccc 21cccc
22[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/tests/disabled_functions_param_array_no_value.php:3, because its argument '$arr' content (aaa) matched the rule '3'. 22
23Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo', because its argument '$arr' content (aaa) matched the rule '3' in %a/disabled_functions_param_array_no_value.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_array_r.phpt b/src/tests/disabled_functions_param_array_r.phpt
index db4f3ba..1773bbe 100644
--- a/src/tests/disabled_functions_param_array_r.phpt
+++ b/src/tests/disabled_functions_param_array_r.phpt
@@ -17,4 +17,5 @@ foo($a);
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19cccc 19cccc
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/tests/disabled_functions_param_array_r.php:3, because its argument 'arr' content (ARRAY) matched the rule '1'. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo', because its argument 'arr' content (ARRAY) matched the rule '1' in %a/disabled_functions_param_array_r.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_array_r_keys.phpt b/src/tests/disabled_functions_param_array_r_keys.phpt
index 0957b64..0748e92 100644
--- a/src/tests/disabled_functions_param_array_r_keys.phpt
+++ b/src/tests/disabled_functions_param_array_r_keys.phpt
@@ -17,4 +17,5 @@ foo($a);
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19cccc 19cccc
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/tests/disabled_functions_param_array_r_keys.php:3, because its argument 'arr' content (ARRAY) matched the rule '2'. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo', because its argument 'arr' content (ARRAY) matched the rule '2' in %a/disabled_functions_param_array_r_keys.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_array_several_levels.phpt b/src/tests/disabled_functions_param_array_several_levels.phpt
index b98c5a0..cbe845b 100644
--- a/src/tests/disabled_functions_param_array_several_levels.phpt
+++ b/src/tests/disabled_functions_param_array_several_levels.phpt
@@ -17,4 +17,5 @@ foo($a);
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19cccc 19cccc
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/tests/disabled_functions_param_array_several_levels.php:3, because its argument '$arr' content (ARRAY) matched the rule '4'. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '4' in %a/disabled_functions_param_array_several_levels.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_array_several_levels_int.phpt b/src/tests/disabled_functions_param_array_several_levels_int.phpt
index b643ef8..d957acf 100644
--- a/src/tests/disabled_functions_param_array_several_levels_int.phpt
+++ b/src/tests/disabled_functions_param_array_several_levels_int.phpt
@@ -17,4 +17,5 @@ foo($a);
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19cccc 19cccc
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/tests/disabled_functions_param_array_several_levels_int.php:3, because its argument '$arr' content (ARRAY) matched the rule '4'. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '4' in %a/disabled_functions_param_array_several_levels_int.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_array_several_levels_keys.phpt b/src/tests/disabled_functions_param_array_several_levels_keys.phpt
index de3d333..59d27c0 100644
--- a/src/tests/disabled_functions_param_array_several_levels_keys.phpt
+++ b/src/tests/disabled_functions_param_array_several_levels_keys.phpt
@@ -17,4 +17,5 @@ foo($a);
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19cccc 19cccc
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/tests/disabled_functions_param_array_several_levels_keys.php:3, because its argument '$arr' content (ARRAY) matched the rule '5'. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '5' in %a/disabled_functions_param_array_several_levels_keys.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_array_several_levels_keys_int.phpt b/src/tests/disabled_functions_param_array_several_levels_keys_int.phpt
index d5b998a..647c394 100644
--- a/src/tests/disabled_functions_param_array_several_levels_keys_int.phpt
+++ b/src/tests/disabled_functions_param_array_several_levels_keys_int.phpt
@@ -17,4 +17,5 @@ foo($a);
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19cccc 19cccc
20[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/tests/disabled_functions_param_array_several_levels_keys_int.php:3, because its argument '$arr' content (ARRAY) matched the rule '6'. 20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo', because its argument '$arr' content (ARRAY) matched the rule '6' in %a/disabled_functions_param_array_several_levels_keys_int.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_broken_line.phpt b/src/tests/disabled_functions_param_broken_line.phpt
index cca001f..d709d15 100644
--- a/src/tests/disabled_functions_param_broken_line.phpt
+++ b/src/tests/disabled_functions_param_broken_line.phpt
@@ -10,6 +10,8 @@ system("echo 1337");
10system("echo 1338"); 10system("echo 1338");
11?> 11?>
12--EXPECTF-- 12--EXPECTF--
13[snuffleupagus][0.0.0.0][config][error] Failed to parse arg 'qwe' of `line` on line 1. 13PHP Fatal error: [snuffleupagus][config] Failed to parse arg 'qwe' of `line` on line 1 in Unknown on line 0
14
15Fatal error: [snuffleupagus][config] Failed to parse arg 'qwe' of `line` on line 1 in Unknown on line 0
141337 161337
151338 171338 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_int.phpt b/src/tests/disabled_functions_param_int.phpt
index fbbf2f0..e8b0a42 100644
--- a/src/tests/disabled_functions_param_int.phpt
+++ b/src/tests/disabled_functions_param_int.phpt
@@ -18,4 +18,5 @@ foobar("10");
18?> 18?>
19--EXPECTF-- 19--EXPECTF--
201 201
21[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foobar' in %a/tests/disabled_functions_param_int.php:3, because its argument '$id' content (42) matched a rule. 21
22Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foobar', because its argument '$id' content (42) matched a rule in %a/disabled_functions_param_int.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_invalid_pos.phpt b/src/tests/disabled_functions_param_invalid_pos.phpt
index 91ddd93..14db1fc 100644
--- a/src/tests/disabled_functions_param_invalid_pos.phpt
+++ b/src/tests/disabled_functions_param_invalid_pos.phpt
@@ -9,6 +9,7 @@ sp.configuration_file={PWD}/config/disabled_functions_invalid_pos.ini
9system("echo 1"); 9system("echo 1");
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][config][error] Failed to parse arg 'qwe' of `pos` on line 1. 12PHP Fatal error: [snuffleupagus][config] Failed to parse arg 'qwe' of `pos` on line 1 in Unknown on line 0
131
14 13
14Fatal error: [snuffleupagus][config] Failed to parse arg 'qwe' of `pos` on line 1 in Unknown on line 0
151 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_line.phpt b/src/tests/disabled_functions_param_line.phpt
index 12ea749..75bfedd 100644
--- a/src/tests/disabled_functions_param_line.phpt
+++ b/src/tests/disabled_functions_param_line.phpt
@@ -11,4 +11,5 @@ system("id");
11?> 11?>
12--EXPECTF-- 12--EXPECTF--
131337 131337
14[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_functions_param_line.php:3. 14
15Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/disabled_functions_param_line.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_pos.phpt b/src/tests/disabled_functions_param_pos.phpt
index 3e4fdc5..9127929 100644
--- a/src/tests/disabled_functions_param_pos.phpt
+++ b/src/tests/disabled_functions_param_pos.phpt
@@ -9,5 +9,6 @@ sp.configuration_file={PWD}/config/disabled_functions_pos.ini
9system("id"); 9system("id");
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][config][error] It seems that you wrote a rule filtering on the 1337th argument of the function 'system', but it takes only 1 arguments. Matching on _all_ arguments instead. 12Warning: [snuffleupagus][config] It seems that you wrote a rule filtering on the 1337th argument of the function 'system', but it takes only 1 arguments. Matching on _all_ arguments instead. in %a/disabled_functions_param_pos.php on line 2
13[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/disabled_functions_param_pos.php:2, because its argument 'command' content (id) matched a rule. 13
14Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system', because its argument 'command' content (id) matched a rule in %a/tests/disabled_functions_param_pos.php on line %d
diff --git a/src/tests/disabled_functions_param_pos2.phpt b/src/tests/disabled_functions_param_pos2.phpt
index 53487f8..87e18c0 100644
--- a/src/tests/disabled_functions_param_pos2.phpt
+++ b/src/tests/disabled_functions_param_pos2.phpt
@@ -10,4 +10,4 @@ strlen("od");
10strlen("id"); 10strlen("id");
11?> 11?>
12--EXPECTF-- 12--EXPECTF--
13[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strlen' in %a/disabled_functions_param_pos2.php:3, because its argument 'str' content (id) matched the rule 'strlen array'. 13Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen', because its argument 'str' content (id) matched the rule 'strlen array' in %a/disabled_functions_param_pos2.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_param_r.phpt b/src/tests/disabled_functions_param_r.phpt
index e44b1d5..722f126 100644
--- a/src/tests/disabled_functions_param_r.phpt
+++ b/src/tests/disabled_functions_param_r.phpt
@@ -10,4 +10,4 @@ system("id");
10system("echo win"); 10system("echo win");
11?> 11?>
12--EXPECTF-- 12--EXPECTF--
13[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/tests/disabled_functions_param_r.php:2, because its argument 'command' content (id) matched a rule. 13Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system', because its argument 'command' content (id) matched a rule in %a/disabled_functions_param_r.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_pos_type.phpt b/src/tests/disabled_functions_pos_type.phpt
index 0b93fd1..7739dfb 100644
--- a/src/tests/disabled_functions_pos_type.phpt
+++ b/src/tests/disabled_functions_pos_type.phpt
@@ -9,6 +9,8 @@ sp.configuration_file={PWD}/config/disabled_functions_pos.ini
9system([123, 456]); 9system([123, 456]);
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][config][error] It seems that you wrote a rule filtering on the 1337th argument of the function 'system', but it takes only 1 arguments. Matching on _all_ arguments instead. 12Warning: [snuffleupagus][config] It seems that you wrote a rule filtering on the 1337th argument of the function 'system', but it takes only 1 arguments. Matching on _all_ arguments instead. in %a/tests/disabled_functions_pos_type.php on line %d
13[snuffleupagus][0.0.0.0][config][error] It seems that you wrote a rule filtering on the 1st argument of the function 'system', but it takes only 1 arguments. Matching on _all_ arguments instead. 13
14[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/tests/disabled_functions_pos_type.php:2, because its argument 'command' content (?) matched the rule '1'. 14Warning: [snuffleupagus][config] It seems that you wrote a rule filtering on the 1st argument of the function 'system', but it takes only 1 arguments. Matching on _all_ arguments instead. in %a/tests/disabled_functions_pos_type.php on line %d
15
16Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system', because its argument 'command' content (?) matched the rule '1' in %a/tests/disabled_functions_pos_type.php on line %d
diff --git a/src/tests/disabled_functions_regexp_multiple.phpt b/src/tests/disabled_functions_regexp_multiple.phpt
index 0211062..79f1fc7 100644
--- a/src/tests/disabled_functions_regexp_multiple.phpt
+++ b/src/tests/disabled_functions_regexp_multiple.phpt
@@ -11,8 +11,9 @@ echo strcmp("1", "2") . "\n";
11print("After") . "\n"; 11print("After") . "\n";
12?> 12?>
13--EXPECTF-- 13--EXPECTF--
14[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'strlen' in %a/disabled_functions_regexp_multiple.php:2. 14Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_functions_regexp_multiple.php on line 2
152 152
16[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'strcmp' in %a/disabled_functions_regexp_multiple.php:3. 16
17Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strcmp' in %a/disabled_functions_regexp_multiple.php on line 3
17-1 18-1
18After 19After \ No newline at end of file
diff --git a/src/tests/disabled_functions_register_shutdown_function.phpt b/src/tests/disabled_functions_register_shutdown_function.phpt
index 45c52a4..b6f1a10 100644
--- a/src/tests/disabled_functions_register_shutdown_function.phpt
+++ b/src/tests/disabled_functions_register_shutdown_function.phpt
@@ -14,4 +14,5 @@ register_shutdown_function('my_super_function');
14?> 14?>
15--EXPECTF-- 15--EXPECTF--
161337 161337
17[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'my_super_function' in %a/tests/disabled_functions_register_shutdown_function.php:3. 17
18Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'my_super_function' in %a/disabled_functions_register_shutdown_function.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_register_tick_function.phpt b/src/tests/disabled_functions_register_tick_function.phpt
index 57cabc4..6e3fb6f 100644
--- a/src/tests/disabled_functions_register_tick_function.phpt
+++ b/src/tests/disabled_functions_register_tick_function.phpt
@@ -15,4 +15,5 @@ register_tick_function('my_super_function');
15?> 15?>
16--EXPECTF-- 16--EXPECTF--
171337 171337
18[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'my_super_function' in %a/tests/disabled_functions_register_tick_function.php:4. 18
19Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'my_super_function' in %a/disabled_functions_register_tick_function.php on line 4 \ No newline at end of file
diff --git a/src/tests/disabled_functions_require.phpt b/src/tests/disabled_functions_require.phpt
index 4f22a45..77dfbf5 100644
--- a/src/tests/disabled_functions_require.phpt
+++ b/src/tests/disabled_functions_require.phpt
@@ -13,11 +13,12 @@ require $dir . '/test.bla';
13require $dir . '/test.meh'; 13require $dir . '/test.meh';
14echo "1337"; 14echo "1337";
15?> 15?>
16--EXPECTF--
17BLA[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'require' in %a/disabled_functions_require.php:%d, because its argument 'inclusion path' content (%a/test.meh) matched a rule.
18--CLEAN-- 16--CLEAN--
19<?php 17<?php
20$dir = __DIR__; 18$dir = __DIR__;
21unlink($dir . '/test.bla'); 19unlink($dir . '/test.bla');
22unlink($dir . '/test.meh'); 20unlink($dir . '/test.meh');
23?> 21?>
22--EXPECTF--
23BLA
24Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'require', because its argument 'inclusion path' content (%a/test.meh) matched a rule in %a/disabled_functions_require.php on line 6
diff --git a/src/tests/disabled_functions_require_once.phpt b/src/tests/disabled_functions_require_once.phpt
index 60b7841..84e93cd 100644
--- a/src/tests/disabled_functions_require_once.phpt
+++ b/src/tests/disabled_functions_require_once.phpt
@@ -13,11 +13,12 @@ require_once $dir . '/test.bla';
13require_once $dir . '/test.meh'; 13require_once $dir . '/test.meh';
14echo "1337"; 14echo "1337";
15?> 15?>
16--EXPECTF--
17BLA[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'require_once' in %a/disabled_functions_require_once.php:%d, because its argument 'inclusion path' content (%a/test.meh) matched a rule.
18--CLEAN-- 16--CLEAN--
19<?php 17<?php
20$dir = __DIR__; 18$dir = __DIR__;
21unlink($dir . '/test.bla'); 19unlink($dir . '/test.bla');
22unlink($dir . '/test.meh'); 20unlink($dir . '/test.meh');
23?> 21?>
22--EXPECTF--
23BLA
24Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'require_once', because its argument 'inclusion path' content (%a/test.meh) matched a rule in %a/disabled_functions_require_once.php on line 6
diff --git a/src/tests/disabled_functions_require_simulation.phpt b/src/tests/disabled_functions_require_simulation.phpt
index e092def..6c97480 100644
--- a/src/tests/disabled_functions_require_simulation.phpt
+++ b/src/tests/disabled_functions_require_simulation.phpt
@@ -13,14 +13,15 @@ require $dir . '/test.bla';
13require $dir . '/test.sim'; 13require $dir . '/test.sim';
14echo "1337\n"; 14echo "1337\n";
15?> 15?>
16--EXPECTF--
17BLA
18[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'require' in %a/disabled_functions_require_simulation.php:%d, because its argument 'inclusion path' content (%a/test.sim) matched a rule.
19MEH
201337
21--CLEAN-- 16--CLEAN--
22<?php 17<?php
23$dir = __DIR__; 18$dir = __DIR__;
24unlink($dir . '/test.bla'); 19unlink($dir . '/test.bla');
25unlink($dir . '/test.sim'); 20unlink($dir . '/test.sim');
26?> 21?>
22--EXPECTF--
23BLA
24
25Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'require', because its argument 'inclusion path' content (%a/test.sim) matched a rule in %a/disabled_functions_require_simulation.php on line 6
26MEH
271337
diff --git a/src/tests/disabled_functions_ret.phpt b/src/tests/disabled_functions_ret.phpt
index 7a16599..7c5d596 100644
--- a/src/tests/disabled_functions_ret.phpt
+++ b/src/tests/disabled_functions_ret.phpt
@@ -10,4 +10,4 @@ echo strpos("pouet", "p");
10echo stripos("pouet", "p"); 10echo stripos("pouet", "p");
11?> 11?>
12--EXPECTF-- 12--EXPECTF--
13[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'strpos' in %a/disabled_functions_ret.php:2, because the function returned '0', which matched a rule. 13Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'strpos', because the function returned '0', which matched a rule in %a/disabled_functions_ret.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret2.phpt b/src/tests/disabled_functions_ret2.phpt
index 863b7e0..e32c585 100644
--- a/src/tests/disabled_functions_ret2.phpt
+++ b/src/tests/disabled_functions_ret2.phpt
@@ -9,4 +9,4 @@ sp.configuration_file={PWD}/config/disabled_functions_ret.ini
9echo stripos("pouet", "p"); 9echo stripos("pouet", "p");
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'stripos' in %a/disabled_functions_ret2.php:2, because the function returned '0', which matched a rule. 12Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'stripos', because the function returned '0', which matched a rule in %a/disabled_functions_ret2.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret3.phpt b/src/tests/disabled_functions_ret3.phpt
index 87a44ef..dc60c43 100644
--- a/src/tests/disabled_functions_ret3.phpt
+++ b/src/tests/disabled_functions_ret3.phpt
@@ -19,4 +19,5 @@ echo("We're at the end of the execution.\n");
19?> 19?>
20--EXPECTF-- 20--EXPECTF--
21We're in function `a`. 21We're in function `a`.
22[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'Bob::a' in %a/disabled_functions_ret3.php:9, because the function returned '2', which matched a rule. 22
23Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'Bob::a', because the function returned '2', which matched a rule in %a/disabled_functions_ret3.php on line 9 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_right_hash.phpt b/src/tests/disabled_functions_ret_right_hash.phpt
index 04f7d05..1307172 100644
--- a/src/tests/disabled_functions_ret_right_hash.phpt
+++ b/src/tests/disabled_functions_ret_right_hash.phpt
@@ -10,4 +10,5 @@ system("echo $((1 + 1336))");
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
121337 121337
13[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'system' in %a/tests/disabled_functions_ret_right_hash.php:2, because the function returned '1337', which matched a rule. 13
14Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'system', because the function returned '1337', which matched a rule in %a/disabled_functions_ret_right_hash.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_simulation.phpt b/src/tests/disabled_functions_ret_simulation.phpt
index 4368b12..bd4cea0 100644
--- a/src/tests/disabled_functions_ret_simulation.phpt
+++ b/src/tests/disabled_functions_ret_simulation.phpt
@@ -11,8 +11,10 @@ echo stripos("pouet", "p") . "\n";
11strcmp("p", "p") . "\n"; 11strcmp("p", "p") . "\n";
12?> 12?>
13--EXPECTF-- 13--EXPECTF--
14[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on return of the function 'strpos' in %a/disabled_functions_ret_simulation.php:2, because the function returned '0', which matched a rule. 14Warning: [snuffleupagus][disabled_function] Aborted execution on return of the function 'strpos', because the function returned '0', which matched a rule in %a/disabled_functions_ret_simulation.php on line 2
150 150
16[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on return of the function 'stripos' in %a/disabled_functions_ret_simulation.php:3, because the function returned '0', which matched the rule '1'. 16
17Warning: [snuffleupagus][disabled_function] Aborted execution on return of the function 'stripos', because the function returned '0', which matched the rule '1' in %a/disabled_functions_ret_simulation.php on line 3
170 180
18[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'strcmp' in %a/disabled_functions_ret_simulation.php:4, because the function returned '0', which matched a rule. 19
20Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'strcmp', because the function returned '0', which matched a rule in %a/disabled_functions_ret_simulation.php on line 4 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_type.phpt b/src/tests/disabled_functions_ret_type.phpt
index 4436157..88401ca 100644
--- a/src/tests/disabled_functions_ret_type.phpt
+++ b/src/tests/disabled_functions_ret_type.phpt
@@ -13,4 +13,5 @@ echo strpos("pouet", "123");
13--EXPECTF-- 13--EXPECTF--
14int(0) 14int(0)
151337 151337
16[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'strpos' in %a/disabled_functions_ret_type.php:%d, because the function returned 'FALSE', which matched the rule 'Return value is FALSE'. 16
17Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'strpos', because the function returned 'FALSE', which matched the rule 'Return value is FALSE' in %a/disabled_functions_ret_type.php on line 4 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_type_array.phpt b/src/tests/disabled_functions_ret_type_array.phpt
index 79b3d07..3ceac9e 100644
--- a/src/tests/disabled_functions_ret_type_array.phpt
+++ b/src/tests/disabled_functions_ret_type_array.phpt
@@ -9,4 +9,4 @@ sp.configuration_file={PWD}/config/disabled_functions_ret_type_array.ini
9echo get_loaded_extensions(); 9echo get_loaded_extensions();
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'get_loaded_extensions' in %a/tests/disabled_functions_ret_type_array.php:2, because the function returned 'ARRAY', which matched the rule 'Return value is an array'. 12Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'get_loaded_extensions', because the function returned 'ARRAY', which matched the rule 'Return value is an array' in %a/disabled_functions_ret_type_array.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_type_double.phpt b/src/tests/disabled_functions_ret_type_double.phpt
index 7f6dcce..b0e895c 100644
--- a/src/tests/disabled_functions_ret_type_double.phpt
+++ b/src/tests/disabled_functions_ret_type_double.phpt
@@ -9,4 +9,4 @@ sp.configuration_file={PWD}/config/disabled_functions_ret_type_double.ini
9echo cos(0.5) . "\n"; 9echo cos(0.5) . "\n";
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'cos' %a/disabled_functions_ret_type_double.php:%d, because the function returned '0.877583', which matched the rule 'Return value is a double'. 12Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'cos', because the function returned '0.877583', which matched the rule 'Return value is a double' in %a/disabled_functions_ret_type_double.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_type_long.phpt b/src/tests/disabled_functions_ret_type_long.phpt
index 1f13079..c389533 100644
--- a/src/tests/disabled_functions_ret_type_long.phpt
+++ b/src/tests/disabled_functions_ret_type_long.phpt
@@ -9,4 +9,4 @@ sp.configuration_file={PWD}/config/disabled_functions_ret_type_long.ini
9echo strlen("pouet") . "\n"; 9echo strlen("pouet") . "\n";
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'strlen' in %a/disabled_functions_ret_type_long.php:%d, because the function returned '5', which matched the rule 'Return value is a long'. 12Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'strlen', because the function returned '5', which matched the rule 'Return value is a long' in %a/disabled_functions_ret_type_long.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_type_null.phpt b/src/tests/disabled_functions_ret_type_null.phpt
index d000f07..894b3f5 100644
--- a/src/tests/disabled_functions_ret_type_null.phpt
+++ b/src/tests/disabled_functions_ret_type_null.phpt
@@ -13,4 +13,4 @@ function my_function() {
13var_dump(my_function()); 13var_dump(my_function());
14?> 14?>
15--EXPECTF-- 15--EXPECTF--
16[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'my_function' in %atests/disabled_functions_ret_type_null.php:6, because the function returned 'NULL', which matched the rule 'Return value is null'. 16Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'my_function', because the function returned 'NULL', which matched the rule 'Return value is null' in %a/disabled_functions_ret_type_null.php on line 6 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_type_object.phpt b/src/tests/disabled_functions_ret_type_object.phpt
index 688245d..171cd4b 100644
--- a/src/tests/disabled_functions_ret_type_object.phpt
+++ b/src/tests/disabled_functions_ret_type_object.phpt
@@ -13,4 +13,4 @@ $var = a();
13echo "fail"; 13echo "fail";
14?> 14?>
15--EXPECTF-- 15--EXPECTF--
16[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'a' in %a/tests/disabled_functions_ret_type_object.php:5, because the function returned 'OBJECT', which matched a rule. 16Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'a', because the function returned 'OBJECT', which matched a rule in %a/disabled_functions_ret_type_object.php on line 5 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_type_resource.phpt b/src/tests/disabled_functions_ret_type_resource.phpt
index d7eeba3..4ae38b6 100644
--- a/src/tests/disabled_functions_ret_type_resource.phpt
+++ b/src/tests/disabled_functions_ret_type_resource.phpt
@@ -9,4 +9,4 @@ sp.configuration_file={PWD}/config/disabled_functions_ret_type_resource.ini
9echo fopen("/etc/passwd", "r"); 9echo fopen("/etc/passwd", "r");
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'fopen' in %a/disabled_functions_ret_type_resource.php:2, because the function returned 'RESOURCE', which matched the rule 'Return value is a resource'. 12Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'fopen', because the function returned 'RESOURCE', which matched the rule 'Return value is a resource' in %a/disabled_functions_ret_type_resource.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_type_str.phpt b/src/tests/disabled_functions_ret_type_str.phpt
index 2d81e3d..356ff43 100644
--- a/src/tests/disabled_functions_ret_type_str.phpt
+++ b/src/tests/disabled_functions_ret_type_str.phpt
@@ -9,4 +9,4 @@ sp.configuration_file={PWD}/config/disabled_functions_ret_type_str.ini
9echo substr("pouet", 3) . "\n"; 9echo substr("pouet", 3) . "\n";
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'substr' in %a/disabled_functions_ret_type_str.php:%d, because the function returned 'et', which matched the rule 'Return value is a string'. 12Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'substr', because the function returned 'et', which matched the rule 'Return value is a string' in %a/disabled_functions_ret_type_str.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_type_true.phpt b/src/tests/disabled_functions_ret_type_true.phpt
index bec72f9..8ddb1f7 100644
--- a/src/tests/disabled_functions_ret_type_true.phpt
+++ b/src/tests/disabled_functions_ret_type_true.phpt
@@ -13,4 +13,5 @@ echo is_numeric("1234") . "\n";
13--EXPECTF-- 13--EXPECTF--
14bool(false) 14bool(false)
151337 151337
16[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'is_numeric' in %a/disabled_functions_ret_type_true.php:%d, because the function returned 'TRUE', which matched the rule 'Return value is a true'. 16
17Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'is_numeric', because the function returned 'TRUE', which matched the rule 'Return value is a true' in %a/disabled_functions_ret_type_true.php on line 4 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_val.phpt b/src/tests/disabled_functions_ret_val.phpt
index 0a53236..40a3be9 100644
--- a/src/tests/disabled_functions_ret_val.phpt
+++ b/src/tests/disabled_functions_ret_val.phpt
@@ -11,4 +11,5 @@ echo str_repeat("fufufu",1);
11?> 11?>
12--EXPECTF-- 12--EXPECTF--
13fufu 13fufu
14[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'str_repeat' in %a/disabled_functions_ret_val.php:3, because the function returned 'fufufu', which matched a rule. 14
15Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'str_repeat', because the function returned 'fufufu', which matched a rule in %a/disabled_functions_ret_val.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_val_dump.phpt b/src/tests/disabled_functions_ret_val_dump.phpt
index b29cafd..9fff77b 100644
--- a/src/tests/disabled_functions_ret_val_dump.phpt
+++ b/src/tests/disabled_functions_ret_val_dump.phpt
@@ -19,4 +19,5 @@ echo str_repeat("fufufu",1);
19?> 19?>
20--EXPECTF-- 20--EXPECTF--
21fufu 21fufu
22[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'str_repeat' in %a/disabled_functions_ret_val_dump.php:%d, because the function returned 'fufufu', which matched a rule. 22
23Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'str_repeat', because the function returned 'fufufu', which matched a rule in %a/src/tests/disabled_functions_ret_val_dump.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_ret_val_rx.phpt b/src/tests/disabled_functions_ret_val_rx.phpt
index cb383c4..ba06649 100644
--- a/src/tests/disabled_functions_ret_val_rx.phpt
+++ b/src/tests/disabled_functions_ret_val_rx.phpt
@@ -11,4 +11,5 @@ echo str_repeat("fufufu",1);
11?> 11?>
12--EXPECTF-- 12--EXPECTF--
13fufu 13fufu
14[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'str_repeat' in %a/disabled_functions_ret_val_rx.php:3, because the function returned 'fufufu', which matched a rule. 14
15Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'str_repeat', because the function returned 'fufufu', which matched a rule in %a/disabled_functions_ret_val_rx.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_functions_runtime.phpt b/src/tests/disabled_functions_runtime.phpt
index 2bbe8b2..4ba1a53 100644
--- a/src/tests/disabled_functions_runtime.phpt
+++ b/src/tests/disabled_functions_runtime.phpt
@@ -21,11 +21,12 @@ if (rand() % 2) {
21test('1338');test('1337'); 21test('1338');test('1337');
22 22
23?> 23?>
24--EXPECTF--
251338
26[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'test' in %a, because its argument '$param' content (1337) matched a rule.
27--CLEAN-- 24--CLEAN--
28<?php 25<?php
29unlink("file_to_include1.php"); 26unlink("file_to_include1.php");
30unlink("file_to_include2.php"); 27unlink("file_to_include2.php");
31?> 28?>
29--EXPECTF--
301338
31
32Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'test', because its argument '$param' content (1337) matched a rule in %a/src/file_to_include%d.php on line 1
diff --git a/src/tests/disabled_functions_upper.phpt b/src/tests/disabled_functions_upper.phpt
index 92192c5..8fa8ea3 100644
--- a/src/tests/disabled_functions_upper.phpt
+++ b/src/tests/disabled_functions_upper.phpt
@@ -13,4 +13,4 @@ vaR_DUmp("this is a super test");
13echo sTRPOs("pouet", "o"); 13echo sTRPOs("pouet", "o");
14?> 14?>
15--EXPECTF-- 15--EXPECTF--
16[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %a/tests/disabled_functions_upper.php:%d. 16Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/disabled_functions_upper.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_functions_variadic.phpt b/src/tests/disabled_functions_variadic.phpt
index e2abe67..1e2a0dd 100644
--- a/src/tests/disabled_functions_variadic.phpt
+++ b/src/tests/disabled_functions_variadic.phpt
@@ -13,5 +13,6 @@ function foo(...$b) {
13echo foo(5, 4, 3, 2, 1); 13echo foo(5, 4, 3, 2, 1);
14?> 14?>
15--EXPECTF-- 15--EXPECTF--
16[snuffleupagus][0.0.0.0][disable_function][error] Snuffleupagus doesn't support variadic functions yet, sorry. Check https://github.com/nbs-system/snuffleupagus/issues/164 for details. 16Warning: [snuffleupagus][disable_function] Snuffleupagus doesn't support variadic functions yet, sorry. Check https://github.com/nbs-system/snuffleupagus/issues/164 for details. in %a/tests/disabled_functions_variadic.php on line %d
17[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'foo' in %a/disabled_functions_variadic.php:2. 17
18Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo' in %a/tests/disabled_functions_variadic.php on line %d
diff --git a/src/tests/disabled_functions_zero_cidr.phpt b/src/tests/disabled_functions_zero_cidr.phpt
index 2980f3f..4e5f930 100644
--- a/src/tests/disabled_functions_zero_cidr.phpt
+++ b/src/tests/disabled_functions_zero_cidr.phpt
@@ -14,4 +14,4 @@ system("echo 42");
14printf("1337"); 14printf("1337");
15?> 15?>
16--EXPECTF-- 16--EXPECTF--
17[snuffleupagus][127.0.0.1][disabled_function][drop] Aborted execution on call of the function 'system' in %a/tests/disabled_functions_zero_cidr.php:2. 17Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/disabled_functions_zero_cidr.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_native_functions_indirect.phpt b/src/tests/disabled_native_functions_indirect.phpt
index 61ea48b..ba355d6 100644
--- a/src/tests/disabled_native_functions_indirect.phpt
+++ b/src/tests/disabled_native_functions_indirect.phpt
@@ -9,4 +9,4 @@ sp.configuration_file={PWD}/config/disabled_functions.ini
9array_map('system', [1,2,3,4]); 9array_map('system', [1,2,3,4]);
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in%a/tests/disabled_native_functions_indirect.php:2. 12Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/disabled_native_functions_indirect.php on line 2 \ No newline at end of file
diff --git a/src/tests/disabled_user_functions.phpt b/src/tests/disabled_user_functions.phpt
index baa0a9a..9c17b79 100644
--- a/src/tests/disabled_user_functions.phpt
+++ b/src/tests/disabled_user_functions.phpt
@@ -12,4 +12,4 @@ function my_super_function() {
12my_super_function(); 12my_super_function();
13?> 13?>
14--EXPECTF-- 14--EXPECTF--
15[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'my_super_function' in %a/tests/disabled_user_functions.php:3. 15Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'my_super_function' in %a/disabled_user_functions.php on line 3 \ No newline at end of file
diff --git a/src/tests/disabled_user_functions_indirect.phpt b/src/tests/disabled_user_functions_indirect.phpt
index 8239002..f663ded 100644
--- a/src/tests/disabled_user_functions_indirect.phpt
+++ b/src/tests/disabled_user_functions_indirect.phpt
@@ -12,4 +12,4 @@ function my_super_function() {
12array_map('my_super_function', [1,2,3,4]); 12array_map('my_super_function', [1,2,3,4]);
13?> 13?>
14--EXPECTF-- 14--EXPECTF--
15[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'my_super_function' in %a/tests/disabled_user_functions_indirect.php:3. 15Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'my_super_function' in %a/disabled_user_functions_indirect.php on line 3 \ No newline at end of file
diff --git a/src/tests/dump_eval_blacklist.phpt b/src/tests/dump_eval_blacklist.phpt
index 19da8cd..3ae402c 100644
--- a/src/tests/dump_eval_blacklist.phpt
+++ b/src/tests/dump_eval_blacklist.phpt
@@ -35,5 +35,6 @@ if ($res[2] != "GET:get_a='data_get_a' get_b='data_get_b' \n") {
35?> 35?>
36--EXPECTF-- 36--EXPECTF--
37Outside of eval: 14 37Outside of eval: 14
38[snuffleupagus][0.0.0.0][eval][simulation] A call to strlen was tried in eval, in %a/dump_eval_blacklist.php:1, logging it. 38
39After eval: 4 39Warning: [snuffleupagus][eval] A call to strlen was tried in eval, in %a/src/tests/dump_eval_blacklist.php:1, logging it. in %a/src/tests/dump_eval_blacklist.php(9) : eval()'d code on line 1
40After eval: 4 \ No newline at end of file
diff --git a/src/tests/dump_eval_whitelist.phpt b/src/tests/dump_eval_whitelist.phpt
index 24ca1d1..cf24dba 100644
--- a/src/tests/dump_eval_whitelist.phpt
+++ b/src/tests/dump_eval_whitelist.phpt
@@ -47,5 +47,6 @@ if ($res[2] != "GET:get_a='data_get_a' get_b='data_get_b' \n") {
47--EXPECTF-- 47--EXPECTF--
48Outside of eval: my_fun: 1337 1337 1337 48Outside of eval: my_fun: 1337 1337 1337
49After allowed eval: my_fun: 1234 49After allowed eval: my_fun: 1234
50[snuffleupagus][0.0.0.0][Eval_whitelist][simulation] The function 'my_other_fun' isn't in the eval whitelist, logging its call. 50
51Warning: [snuffleupagus][Eval_whitelist] The function 'my_other_fun' isn't in the eval whitelist, logging its call. in %a/tests/dump_eval_whitelist.php on line 12
51After eval: my_other_fun: 1234 52After eval: my_other_fun: 1234
diff --git a/src/tests/dump_request.phpt b/src/tests/dump_request.phpt
index ceb03d5..a946c92 100644
--- a/src/tests/dump_request.phpt
+++ b/src/tests/dump_request.phpt
@@ -39,5 +39,6 @@ if ($res[2] != "GET:get_a='data_get_a' get_b='data_get_b' \n") {
39?> 39?>
40--EXPECTF-- 40--EXPECTF--
411 411
42[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'system' in %a/dump_request.php:%d. 42
431337 43Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/src/tests/dump_request.php on line 7
441337 \ No newline at end of file
diff --git a/src/tests/dump_request_invalid_folder.phpt b/src/tests/dump_request_invalid_folder.phpt
index d58f280..0f45b41 100644
--- a/src/tests/dump_request_invalid_folder.phpt
+++ b/src/tests/dump_request_invalid_folder.phpt
@@ -20,5 +20,7 @@ echo "2\n";
20?> 20?>
21--EXPECTF-- 21--EXPECTF--
221 221
23[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'system' in %atests/dump_request_invalid_folder.php:3. 23
24[snuffleupagus][0.0.0.0][request_logging][error] Unable to create the folder '/root/NON_EXISTENT/FOLDER/PLEASE/'. 24Warning: [snuffleupagus][request_logging] Unable to create the folder '/root/NON_EXISTENT/FOLDER/PLEASE/' in %a/tests/dump_request_invalid_folder.php on line %d
25
26Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/tests/dump_request_invalid_folder.php on line %d
diff --git a/src/tests/dump_request_too_big.phpt b/src/tests/dump_request_too_big.phpt
index af146c5..f236882 100644
--- a/src/tests/dump_request_too_big.phpt
+++ b/src/tests/dump_request_too_big.phpt
@@ -39,5 +39,6 @@ if ($res[2] != "GET:get_a='data_get_a' get_b='data_get_b' get_c='aaaaaaaaaaaaaaa
39?> 39?>
40--EXPECTF-- 40--EXPECTF--
411 411
42[snuffleupagus][127.0.0.1][disabled_function][simulation] Aborted execution on call of the function 'system' in %a/dump_request_too_big.php:%d. 42
43Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'system' in %a/src/tests/dump_request_too_big.php on line 8
431337 \ No newline at end of file 441337 \ No newline at end of file
diff --git a/src/tests/dump_segfault1.phpt b/src/tests/dump_segfault1.phpt
index 24265d1..bb35aa6 100644
--- a/src/tests/dump_segfault1.phpt
+++ b/src/tests/dump_segfault1.phpt
@@ -9,5 +9,4 @@ sp.configuration_file={PWD}/config/config_dump_segfault1.ini
9echo strpos("pouet", "p") . "\n"; 9echo strpos("pouet", "p") . "\n";
10?> 10?>
11--EXPECTF-- 11--EXPECTF--
12[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on return of the function 'strpos' in %a/tests/dump_segfault1.php:2, because the function returned '0', which matched the rule 'test'. 12Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'strpos', because the function returned '0', which matched the rule 'test' in %a/dump_segfault1.php on line 2 \ No newline at end of file
13
diff --git a/src/tests/dump_unserialize.phpt b/src/tests/dump_unserialize.phpt
index dfa8501..592e9b0 100644
--- a/src/tests/dump_unserialize.phpt
+++ b/src/tests/dump_unserialize.phpt
@@ -35,5 +35,5 @@ if ($res[2] != "GET:get_a='data_get_a' get_b='data_get_b' \n") {
35?> 35?>
36--EXPECTF-- 36--EXPECTF--
371 371
38[snuffleupagus][0.0.0.0][unserialize][drop] Invalid HMAC for s:1:"a";alyualskdufyhalkdjsfh 38
39NULL 39Fatal error: [snuffleupagus][unserialize] Invalid HMAC for s:1:"a";alyualskdufyhalkdjsfh in %a/src/tests/dump_unserialize.php on line 8 \ No newline at end of file
diff --git a/src/tests/encrypt_cookies_empty_env.phpt b/src/tests/encrypt_cookies_empty_env.phpt
index beb4215..252f831 100644
--- a/src/tests/encrypt_cookies_empty_env.phpt
+++ b/src/tests/encrypt_cookies_empty_env.phpt
@@ -12,4 +12,6 @@ super_cookie=cGFkZGluZ3BhZGRpbmdwYWRkaW5ncGFkZGluZ3BhZGRpbmdwYWRkaW5ncGFkZGluZ3B
12--FILE-- 12--FILE--
13<?php echo "1\n\n\n\n\n"; ?> 13<?php echo "1\n\n\n\n\n"; ?>
14--EXPECT-- 14--EXPECT--
151 15Warning: [snuffleupagus][cookie_encryption] The environment variable 'SUPER_ENV_VAR' is empty, cookies are weakly encrypted in Unknown on line 0
16
17Fatal error: [snuffleupagus][cookie_encryption] Something went wrong with the decryption of super_cookie in Unknown on line 0
diff --git a/src/tests/encrypt_cookies_invalid_decryption.phpt b/src/tests/encrypt_cookies_invalid_decryption.phpt
index a5187c1..c64675d 100644
--- a/src/tests/encrypt_cookies_invalid_decryption.phpt
+++ b/src/tests/encrypt_cookies_invalid_decryption.phpt
@@ -16,8 +16,4 @@ EOF;
16--FILE-- 16--FILE--
17<?php var_dump($_COOKIE); ?> 17<?php var_dump($_COOKIE); ?>
18--EXPECT-- 18--EXPECT--
19 19Fatal error: [snuffleupagus][cookie_encryption] Something went wrong with the decryption of super_cookie in Unknown on line 0 \ No newline at end of file
20array(1) {
21 ["awful_cookie"]=>
22 string(18) "awful_cookie_value"
23}
diff --git a/src/tests/encrypt_cookies_invalid_decryption2.phpt b/src/tests/encrypt_cookies_invalid_decryption2.phpt
index f18cf6d..b3a55dd 100644
--- a/src/tests/encrypt_cookies_invalid_decryption2.phpt
+++ b/src/tests/encrypt_cookies_invalid_decryption2.phpt
@@ -16,8 +16,4 @@ EOF;
16--FILE-- 16--FILE--
17<?php var_dump($_COOKIE); ?> 17<?php var_dump($_COOKIE); ?>
18--EXPECT-- 18--EXPECT--
19 19Fatal error: [snuffleupagus][cookie_encryption] Buffer underflow tentative detected in cookie encryption handling in Unknown on line 0 \ No newline at end of file
20array(1) {
21 ["awful_cookie"]=>
22 string(18) "awful_cookie_value"
23}
diff --git a/src/tests/encrypt_cookies_invalid_decryption_short_cookie.phpt b/src/tests/encrypt_cookies_invalid_decryption_short_cookie.phpt
index e5b6bfc..39f189c 100644
--- a/src/tests/encrypt_cookies_invalid_decryption_short_cookie.phpt
+++ b/src/tests/encrypt_cookies_invalid_decryption_short_cookie.phpt
@@ -16,9 +16,10 @@ EOF;
16--FILE-- 16--FILE--
17<?php var_dump($_COOKIE); ?> 17<?php var_dump($_COOKIE); ?>
18--EXPECT-- 18--EXPECT--
19Warning: [snuffleupagus][cookie_encryption] Buffer underflow tentative detected in cookie encryption handling for super_cookie. Using the cookie 'as it' instead of decrypting it in Unknown on line 0
19array(2) { 20array(2) {
20 ["super_cookie"]=> 21 ["super_cookie"]=>
21 string(3) "AAA" 22 string(3) "AAA"
22 ["awful_cookie"]=> 23 ["awful_cookie"]=>
23 string(18) "awful_cookie_value" 24 string(18) "awful_cookie_value"
24} 25} \ No newline at end of file
diff --git a/src/tests/encrypt_cookies_invalid_decryption_simulation.phpt b/src/tests/encrypt_cookies_invalid_decryption_simulation.phpt
index 0bd1dc8..d2004b9 100644
--- a/src/tests/encrypt_cookies_invalid_decryption_simulation.phpt
+++ b/src/tests/encrypt_cookies_invalid_decryption_simulation.phpt
@@ -18,10 +18,11 @@ EOF;
18echo "1337\n"; 18echo "1337\n";
19var_dump($_COOKIE); ?> 19var_dump($_COOKIE); ?>
20--EXPECT-- 20--EXPECT--
21Warning: [snuffleupagus][cookie_encryption] Something went wrong with the decryption of super_cookie. Using the cookie 'as it' instead of decrypting it in Unknown on line 0
211337 221337
22array(2) { 23array(2) {
23 ["super_cookie"]=> 24 ["super_cookie"]=>
24 string(124) "Wk9NR1RISVNJU05PVEVOQ1JZUFRFREFUQUxMV0hBVFRIRUhFTExJU0hIRUxMQVJFWU9VRE9JTkdaT01Hb2htYXliZXRoaXNpc2Fub2xkc2Vzc2lvbmNvb2tpZQo=" 25 string(124) "Wk9NR1RISVNJU05PVEVOQ1JZUFRFREFUQUxMV0hBVFRIRUhFTExJU0hIRUxMQVJFWU9VRE9JTkdaT01Hb2htYXliZXRoaXNpc2Fub2xkc2Vzc2lvbmNvb2tpZQo="
25 ["awfulcookie"]=> 26 ["awfulcookie"]=>
26 string(16) "awfulcookievalue" 27 string(16) "awfulcookievalue"
27} 28} \ No newline at end of file
diff --git a/src/tests/encrypt_cookies_no_env.phpt b/src/tests/encrypt_cookies_no_env.phpt
index 47de27f..c3aeaef 100644
--- a/src/tests/encrypt_cookies_no_env.phpt
+++ b/src/tests/encrypt_cookies_no_env.phpt
@@ -14,6 +14,7 @@ return <<<EOF
14REMOTE_ADDR=127.0.0.1 14REMOTE_ADDR=127.0.0.1
15EOF; 15EOF;
16--FILE-- 16--FILE--
17<?php echo "1\n\n\n\n\n"; ?> 17<?php echo "1"; ?>
18--EXPECT-- 18--EXPECT--
191 191
20Fatal error: [snuffleupagus][config] You're trying to use the cookie encryption featureon line 2 without having set the `.cookie_env_var` option in`sp.global`: please set it first in Unknown on line 0
diff --git a/src/tests/encrypt_cookies_no_key.phpt b/src/tests/encrypt_cookies_no_key.phpt
index b54690f..ca81593 100644
--- a/src/tests/encrypt_cookies_no_key.phpt
+++ b/src/tests/encrypt_cookies_no_key.phpt
@@ -14,6 +14,7 @@ return <<<EOF
14REMOTE_ADDR=127.0.0.1 14REMOTE_ADDR=127.0.0.1
15EOF; 15EOF;
16--FILE-- 16--FILE--
17<?php echo "1\n\n\n\n\n"; ?> 17<?php echo "1"; ?>
18--EXPECT-- 18--EXPECT--
191 191
20Fatal error: [snuffleupagus][config] You're trying to use the cookie encryption featureon line 2 without having set the `.encryption_key` option in`sp.global`: please set it first in Unknown on line 0
diff --git a/src/tests/encrypt_regexp_cookies_empty_env.phpt b/src/tests/encrypt_regexp_cookies_empty_env.phpt
index 1ee6160..852c32e 100644
--- a/src/tests/encrypt_regexp_cookies_empty_env.phpt
+++ b/src/tests/encrypt_regexp_cookies_empty_env.phpt
@@ -16,4 +16,4 @@ EOF;
16--FILE-- 16--FILE--
17<?php echo "1\n\n\n\n\n"; ?> 17<?php echo "1\n\n\n\n\n"; ?>
18--EXPECT-- 18--EXPECT--
191 19Fatal error: [snuffleupagus][cookie_encryption] Buffer underflow tentative detected in cookie encryption handling in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/encrypt_regexp_cookies_invalid_decryption.phpt b/src/tests/encrypt_regexp_cookies_invalid_decryption.phpt
index 22bed26..0c02806 100644
--- a/src/tests/encrypt_regexp_cookies_invalid_decryption.phpt
+++ b/src/tests/encrypt_regexp_cookies_invalid_decryption.phpt
@@ -16,8 +16,4 @@ EOF;
16--FILE-- 16--FILE--
17<?php var_dump($_COOKIE); ?> 17<?php var_dump($_COOKIE); ?>
18--EXPECT-- 18--EXPECT--
19 19Fatal error: [snuffleupagus][cookie_encryption] Something went wrong with the decryption of super_cookie in Unknown on line 0 \ No newline at end of file
20array(1) {
21 ["awful_cookie"]=>
22 string(18) "awful_cookie_value"
23}
diff --git a/src/tests/encrypt_regexp_cookies_invalid_decryption2.phpt b/src/tests/encrypt_regexp_cookies_invalid_decryption2.phpt
index 1a740c0..e75e036 100644
--- a/src/tests/encrypt_regexp_cookies_invalid_decryption2.phpt
+++ b/src/tests/encrypt_regexp_cookies_invalid_decryption2.phpt
@@ -16,8 +16,4 @@ EOF;
16--FILE-- 16--FILE--
17<?php var_dump($_COOKIE); ?> 17<?php var_dump($_COOKIE); ?>
18--EXPECT-- 18--EXPECT--
19 19Fatal error: [snuffleupagus][cookie_encryption] Buffer underflow tentative detected in cookie encryption handling in Unknown on line 0 \ No newline at end of file
20array(1) {
21 ["awful_cookie"]=>
22 string(18) "awful_cookie_value"
23}
diff --git a/src/tests/encrypt_regexp_cookies_no_env.phpt b/src/tests/encrypt_regexp_cookies_no_env.phpt
index 37b95c1..1238075 100644
--- a/src/tests/encrypt_regexp_cookies_no_env.phpt
+++ b/src/tests/encrypt_regexp_cookies_no_env.phpt
@@ -14,6 +14,7 @@ return <<<EOF
14REMOTE_ADDR=127.0.0.1 14REMOTE_ADDR=127.0.0.1
15EOF; 15EOF;
16--FILE-- 16--FILE--
17<?php echo "1\n\n\n\n\n"; ?> 17<?php echo "1"; ?>
18--EXPECT-- 18--EXPECT--
191 191
20Fatal error: [snuffleupagus][config] You're trying to use the cookie encryption featureon line 2 without having set the `.cookie_env_var` option in`sp.global`: please set it first in Unknown on line 0
diff --git a/src/tests/encrypt_regexp_cookies_no_key.phpt b/src/tests/encrypt_regexp_cookies_no_key.phpt
index 12512ce..5e6db7e 100644
--- a/src/tests/encrypt_regexp_cookies_no_key.phpt
+++ b/src/tests/encrypt_regexp_cookies_no_key.phpt
@@ -14,6 +14,7 @@ return <<<EOF
14REMOTE_ADDR=127.0.0.1 14REMOTE_ADDR=127.0.0.1
15EOF; 15EOF;
16--FILE-- 16--FILE--
17<?php echo "1\n\n\n\n\n"; ?> 17<?php echo "1"; ?>
18--EXPECT-- 18--EXPECT--
191 191
20Fatal error: [snuffleupagus][config] You're trying to use the cookie encryption featureon line 2 without having set the `.encryption_key` option in`sp.global`: please set it first in Unknown on line 0
diff --git a/src/tests/eval_backlist.phpt b/src/tests/eval_backlist.phpt
index 20b2c92..f24af96 100644
--- a/src/tests/eval_backlist.phpt
+++ b/src/tests/eval_backlist.phpt
@@ -13,4 +13,5 @@ echo "After eval: $a\n";
13?> 13?>
14--EXPECTF-- 14--EXPECTF--
15Outside of eval: 14 15Outside of eval: 14
16[snuffleupagus][0.0.0.0][eval][drop] A call to strlen was tried in eval, in%atests/eval_backlist.php:1, dropping it. 16
17Fatal error: [snuffleupagus][eval] A call to strlen was tried in eval, in %a/eval_backlist.php:1, dropping it. in %a/eval_backlist.php(4) : eval()'d code on line 1 \ No newline at end of file
diff --git a/src/tests/eval_backlist_list.phpt b/src/tests/eval_backlist_list.phpt
index b1c7bfd..5bf0ea8 100644
--- a/src/tests/eval_backlist_list.phpt
+++ b/src/tests/eval_backlist_list.phpt
@@ -13,4 +13,5 @@ echo "After eval: $a\n";
13?> 13?>
14--EXPECTF-- 14--EXPECTF--
15Outside of eval: 14 15Outside of eval: 14
16[snuffleupagus][0.0.0.0][eval][drop] A call to strlen was tried in eval, in %a/tests/eval_backlist_list.php:1, dropping it. 16
17Fatal error: [snuffleupagus][eval] A call to strlen was tried in eval, in %a/eval_backlist_list.php:1, dropping it. in %a/eval_backlist_list.php(4) : eval()'d code on line 1 \ No newline at end of file
diff --git a/src/tests/eval_backlist_simulation.phpt b/src/tests/eval_backlist_simulation.phpt
index bea5115..3089c2d 100644
--- a/src/tests/eval_backlist_simulation.phpt
+++ b/src/tests/eval_backlist_simulation.phpt
@@ -13,5 +13,6 @@ echo "After eval: $a\n";
13?> 13?>
14--EXPECTF-- 14--EXPECTF--
15Outside of eval: 14 15Outside of eval: 14
16[snuffleupagus][0.0.0.0][eval][simulation] A call to strlen was tried in eval, in %a/tests/eval_backlist_simulation.php:1, logging it. 16
17After eval: 4 17Warning: [snuffleupagus][eval] A call to strlen was tried in eval, in %a/eval_backlist_simulation.php:1, logging it. in %a/eval_backlist_simulation.php(4) : eval()'d code on line 1
18After eval: 4 \ No newline at end of file
diff --git a/src/tests/eval_backlist_whitelist.phpt b/src/tests/eval_backlist_whitelist.phpt
index 9b0bb55..e5650b2 100644
--- a/src/tests/eval_backlist_whitelist.phpt
+++ b/src/tests/eval_backlist_whitelist.phpt
@@ -20,4 +20,5 @@ echo "After eval: $a\n";
20--EXPECTF-- 20--EXPECTF--
21Outside of eval: my_fun: 1337 1337 1337 21Outside of eval: my_fun: 1337 1337 1337
22After allowed eval: my_fun: 1234 22After allowed eval: my_fun: 1234
23[snuffleupagus][0.0.0.0][Eval_whitelist][drop] The function 'cos' isn't in the eval whitelist, dropping its call. 23
24Fatal error: [snuffleupagus][Eval_whitelist] The function 'cos' isn't in the eval whitelist, dropping its call. in %a/eval_backlist_whitelist.php(10) : eval()'d code on line 1 \ No newline at end of file
diff --git a/src/tests/eval_backlist_whitelist_builtin.phpt b/src/tests/eval_backlist_whitelist_builtin.phpt
index 47d223a..2f8bc19 100644
--- a/src/tests/eval_backlist_whitelist_builtin.phpt
+++ b/src/tests/eval_backlist_whitelist_builtin.phpt
@@ -20,4 +20,5 @@ echo "After eval: $a\n";
20--EXPECTF-- 20--EXPECTF--
21Outside of eval: 1.5574077246549 21Outside of eval: 1.5574077246549
22After allowed eval: 1.5574077246549 22After allowed eval: 1.5574077246549
23[snuffleupagus][0.0.0.0][Eval_whitelist][drop] The function 'cos' isn't in the eval whitelist, dropping its call. 23
24Fatal error: [snuffleupagus][Eval_whitelist] The function 'cos' isn't in the eval whitelist, dropping its call. in %a/eval_backlist_whitelist_builtin.php(10) : eval()'d code on line 1 \ No newline at end of file
diff --git a/src/tests/eval_whitelist.phpt b/src/tests/eval_whitelist.phpt
index 1611288..a602d0d 100644
--- a/src/tests/eval_whitelist.phpt
+++ b/src/tests/eval_whitelist.phpt
@@ -24,4 +24,5 @@ echo "After eval: $a\n";
24--EXPECTF-- 24--EXPECTF--
25Outside of eval: my_fun: 1337 1337 1337 25Outside of eval: my_fun: 1337 1337 1337
26After allowed eval: my_fun: 1234 26After allowed eval: my_fun: 1234
27[snuffleupagus][0.0.0.0][Eval_whitelist][drop] The function 'my_other_fun' isn't in the eval whitelist, dropping its call. 27
28Fatal error: [snuffleupagus][Eval_whitelist] The function 'my_other_fun' isn't in the eval whitelist, dropping its call. in %a/eval_whitelist.php on line 7 \ No newline at end of file
diff --git a/src/tests/eval_whitelist_builtin.phpt b/src/tests/eval_whitelist_builtin.phpt
index bd7c2ac..5ed383d 100644
--- a/src/tests/eval_whitelist_builtin.phpt
+++ b/src/tests/eval_whitelist_builtin.phpt
@@ -16,4 +16,5 @@ echo "After eval: $a\n";
16--EXPECTF-- 16--EXPECTF--
17Outside of eval: 0.54030230586814 17Outside of eval: 0.54030230586814
18After allowed eval: 0.28366218546323 18After allowed eval: 0.28366218546323
19[snuffleupagus][0.0.0.0][Eval_whitelist][drop] The function 'sin' isn't in the eval whitelist, dropping its call. 19
20Fatal error: [snuffleupagus][Eval_whitelist] The function 'sin' isn't in the eval whitelist, dropping its call. in %a/eval_whitelist_builtin.php(6) : eval()'d code on line 1 \ No newline at end of file
diff --git a/src/tests/eval_whitelist_include_then_user.phpt b/src/tests/eval_whitelist_include_then_user.phpt
index 6d4e36a..5ff3bff 100644
--- a/src/tests/eval_whitelist_include_then_user.phpt
+++ b/src/tests/eval_whitelist_include_then_user.phpt
@@ -26,4 +26,5 @@ unlink($dir . '/test.bla');
26--EXPECTF-- 26--EXPECTF--
27Outside of eval: 0.54030230586814 27Outside of eval: 0.54030230586814
28After allowed eval: 0.28366218546323 28After allowed eval: 0.28366218546323
29[snuffleupagus][0.0.0.0][Eval_whitelist][drop] The function 'sin' isn't in the eval whitelist, dropping its call. 29
30Fatal error: [snuffleupagus][Eval_whitelist] The function 'sin' isn't in the eval whitelist, dropping its call. in %a/test.bla on line 1 \ No newline at end of file
diff --git a/src/tests/eval_whitelist_simulation.phpt b/src/tests/eval_whitelist_simulation.phpt
index ff2f970..c4a3efa 100644
--- a/src/tests/eval_whitelist_simulation.phpt
+++ b/src/tests/eval_whitelist_simulation.phpt
@@ -24,5 +24,6 @@ echo "After eval: $a\n";
24--EXPECTF-- 24--EXPECTF--
25Outside of eval: my_fun: 1337 1337 1337 25Outside of eval: my_fun: 1337 1337 1337
26After allowed eval: my_fun: 1234 26After allowed eval: my_fun: 1234
27[snuffleupagus][0.0.0.0][Eval_whitelist][simulation] The function 'my_other_fun' isn't in the eval whitelist, logging its call. 27
28Warning: [snuffleupagus][Eval_whitelist] The function 'my_other_fun' isn't in the eval whitelist, logging its call. in %a/eval_whitelist_simulation.php on line 7
28After eval: my_other_fun: 1234 \ No newline at end of file 29After eval: my_other_fun: 1234 \ No newline at end of file
diff --git a/src/tests/eval_whitelist_user_then_builtin.phpt b/src/tests/eval_whitelist_user_then_builtin.phpt
index 8db36fc..dbc7d93 100644
--- a/src/tests/eval_whitelist_user_then_builtin.phpt
+++ b/src/tests/eval_whitelist_user_then_builtin.phpt
@@ -20,4 +20,5 @@ echo "After eval: $a\n";
20?> 20?>
21--EXPECTF-- 21--EXPECTF--
22Outside of eval: -0.54402111088937 22Outside of eval: -0.54402111088937
23[snuffleupagus][0.0.0.0][Eval_whitelist][drop] The function 'sin' isn't in the eval whitelist, dropping its call. 23
24Fatal error: [snuffleupagus][Eval_whitelist] The function 'sin' isn't in the eval whitelist, dropping its call. in %a/eval_whitelist_user_then_builtin.php on line 4 \ No newline at end of file
diff --git a/src/tests/glob_config.phpt b/src/tests/glob_config.phpt
index 6a3d3d5..b557c8b 100644
--- a/src/tests/glob_config.phpt
+++ b/src/tests/glob_config.phpt
@@ -16,8 +16,8 @@ foo();
16bla(); 16bla();
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'foo' in %s/tests/glob_config.php:%d. 19Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo' in %a/glob_config.php on line 3
201 201
21[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'bla' in %s/tests/glob_config.php:%d.
222
23 21
22Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'bla' in %a/glob_config.php on line 6
232 \ No newline at end of file
diff --git a/src/tests/inexistent_conf_file.phpt b/src/tests/inexistent_conf_file.phpt
index c7c3fcd..ebe2aaa 100644
--- a/src/tests/inexistent_conf_file.phpt
+++ b/src/tests/inexistent_conf_file.phpt
@@ -7,4 +7,6 @@ sp.configuration_file={PWD}/config/unexistent_configuration_file.ini
7--FILE-- 7--FILE--
8<?php ?> 8<?php ?>
9--EXPECTF-- 9--EXPECTF--
10[snuffleupagus][0.0.0.0][config][error] Could not open configuration file %a/tests/config/unexistent_configuration_file.ini : No such file or directory 10PHP Fatal error: [snuffleupagus][config] Could not open configuration file %a/config/unexistent_configuration_file.ini : No such file or directory in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Could not open configuration file %a/config/unexistent_configuration_file.ini : No such file or directory in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/inexistent_conf_file_list.phpt b/src/tests/inexistent_conf_file_list.phpt
index 2f6e204..6b3026e 100644
--- a/src/tests/inexistent_conf_file_list.phpt
+++ b/src/tests/inexistent_conf_file_list.phpt
@@ -7,4 +7,6 @@ sp.configuration_file={PWD}/../../config/default.rules,{PWD}/non_existent_config
7--FILE-- 7--FILE--
8<?php ?> 8<?php ?>
9--EXPECTF-- 9--EXPECTF--
10[snuffleupagus][0.0.0.0][config][error] Could not open configuration file%a/non_existent_configuration_file : No such file or directory 10PHP Fatal error: [snuffleupagus][config] Could not open configuration file %a/non_existent_configuration_file : No such file or directory in Unknown on line 0
11
12Fatal error: [snuffleupagus][config] Could not open configuration file %a/non_existent_configuration_file : No such file or directory in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/multi_config.phpt b/src/tests/multi_config.phpt
index c5509a4..2bdc372 100644
--- a/src/tests/multi_config.phpt
+++ b/src/tests/multi_config.phpt
@@ -16,8 +16,8 @@ foo();
16bla(); 16bla();
17?> 17?>
18--EXPECTF-- 18--EXPECTF--
19[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'foo' in %s/tests/multi_config.php:%d. 19Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'foo' in %a/multi_config.php on line 3
201 201
21[snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'bla' in %s/tests/multi_config.php:%d.
222
23 21
22Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'bla' in %a/multi_config.php on line 6
232 \ No newline at end of file
diff --git a/src/tests/nested_eval_blacklist.phpt b/src/tests/nested_eval_blacklist.phpt
index b12bf93..9671a65 100644
--- a/src/tests/nested_eval_blacklist.phpt
+++ b/src/tests/nested_eval_blacklist.phpt
@@ -25,4 +25,5 @@ Outside of eval: 14
25Inception lvl 1... 25Inception lvl 1...
26Inception lvl 2... 26Inception lvl 2...
27Inception lvl 3... 27Inception lvl 3...
28[snuffleupagus][0.0.0.0][eval][drop] A call to strlen was tried in eval, in %a/tests/nested_eval_blacklist.php(5) : eval()'d code(4) : eval()'d code:3, dropping it. 28
29Fatal error: [snuffleupagus][eval] A call to strlen was tried in eval, in %a/nested_eval_blacklist.php(5) : eval()'d code(4) : eval()'d code:3, dropping it. in %a/nested_eval_blacklist.php(5) : eval()'d code(4) : eval()'d code(4) : eval()'d code on line 3 \ No newline at end of file
diff --git a/src/tests/nested_eval_blacklist2.phpt b/src/tests/nested_eval_blacklist2.phpt
index 3b13e30..aee41db 100644
--- a/src/tests/nested_eval_blacklist2.phpt
+++ b/src/tests/nested_eval_blacklist2.phpt
@@ -25,4 +25,5 @@ Outside of eval: 14
25Inception lvl 1... 25Inception lvl 1...
26Inception lvl 2... 26Inception lvl 2...
27Inception lvl 3... 27Inception lvl 3...
28[snuffleupagus][0.0.0.0][eval][drop] A call to strlen was tried in eval, in %a/tests/nested_eval_blacklist2.php(5) : eval()'d code:7, dropping it. 28
29Fatal error: [snuffleupagus][eval] A call to strlen was tried in eval, in %a/nested_eval_blacklist2.php(5) : eval()'d code:7, dropping it. in %a/nested_eval_blacklist2.php(5) : eval()'d code(4) : eval()'d code on line 7 \ No newline at end of file
diff --git a/src/tests/noncore_function_hooking.phpt b/src/tests/noncore_function_hooking.phpt
index 2cb4686..52bb114 100644
--- a/src/tests/noncore_function_hooking.phpt
+++ b/src/tests/noncore_function_hooking.phpt
@@ -12,4 +12,4 @@ function custom_fun($a) {
12custom_fun("hello"); 12custom_fun("hello");
13?> 13?>
14--EXPECTF-- 14--EXPECTF--
15[snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'custom_fun' in %a/tests/noncore_function_hooking.php:3. 15Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'custom_fun' in %a/noncore_function_hooking.php on line 3 \ No newline at end of file
diff --git a/src/tests/unserialize_fail.phpt b/src/tests/unserialize_fail.phpt
index 5c0bb80..c6411a5 100644
--- a/src/tests/unserialize_fail.phpt
+++ b/src/tests/unserialize_fail.phpt
@@ -12,12 +12,4 @@ var_dump(unserialize('s:1:"a";dslfjklfjfkjfdjffjfjads'));
12var_dump(unserialize(1,2,3,4)); 12var_dump(unserialize(1,2,3,4));
13?> 13?>
14--EXPECTF-- 14--EXPECTF--
15[snuffleupagus][0.0.0.0][unserialize][drop] The serialized object is too small. 15Fatal error: [snuffleupagus][unserialize] The serialized object is too small. in %a/unserialize_fail.php on line 2 \ No newline at end of file
16bool(false)
17[snuffleupagus][0.0.0.0][unserialize][drop] Invalid HMAC for s:1:"a";alyualskdufyhalkdjsfh
18NULL
19[snuffleupagus][0.0.0.0][unserialize][drop] The serialized object is too small.
20bool(false)
21
22Warning: unserialize() expects at most 2 parameters, 4 given in %a/tests/unserialize_fail.php on line %d
23bool(false) \ No newline at end of file
diff --git a/src/tests/unserialize_sim.phpt b/src/tests/unserialize_sim.phpt
index 0d8280c..68f8172 100644
--- a/src/tests/unserialize_sim.phpt
+++ b/src/tests/unserialize_sim.phpt
@@ -11,7 +11,8 @@ echo $a;
11var_dump(unserialize($a)); 11var_dump(unserialize($a));
12var_dump(unserialize('s:1:"a";alyualskdufyhalkdjsfhalkjdhflaksjdfhlkasdhflkahdawkuerylksjdfhlkssjgdflaksjdh1337sjdf')); 12var_dump(unserialize('s:1:"a";alyualskdufyhalkdjsfhalkjdhflaksjdfhlkasdhflkahdawkuerylksjdfhlkssjgdflaksjdh1337sjdf'));
13?> 13?>
14--EXPECT-- 14--EXPECTF--
15s:1:"a";650609b417904d0d9bbf1fc44a975d13ecdf6b02b715c1a06271fb3b673f25b1string(1) "a" 15s:1:"a";650609b417904d0d9bbf1fc44a975d13ecdf6b02b715c1a06271fb3b673f25b1string(1) "a"
16[snuffleupagus][0.0.0.0][unserialize][simulation] Invalid HMAC for s:1:"a";alyualskdufyhalkdjsfh 16
17Warning: [snuffleupagus][unserialize] Invalid HMAC for s:1:"a";alyualskdufyhalkdjsfh in %a/src/tests/unserialize_sim.php on line 5
17string(1) "a" 18string(1) "a"
diff --git a/src/tests/upload_validation.phpt b/src/tests/upload_validation.phpt
index c802c16..bdcbc60 100644
--- a/src/tests/upload_validation.phpt
+++ b/src/tests/upload_validation.phpt
@@ -14,3 +14,4 @@ echo 1;
14?> 14?>
15--EXPECTF-- 15--EXPECTF--
161 161
17Fatal error: [snuffleupagus][config] A rule can't be enabled and disabled on line 1 in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/upload_validation_invalid.phpt b/src/tests/upload_validation_invalid.phpt
index 25a6750..0dbdbbb 100644
--- a/src/tests/upload_validation_invalid.phpt
+++ b/src/tests/upload_validation_invalid.phpt
@@ -13,5 +13,9 @@ Content-Disposition: form-data; name="test"; filename="test.php"
13echo 1; 13echo 1;
14?> 14?>
15--EXPECTF-- 15--EXPECTF--
16[snuffleupagus][0.0.0.0][upload_validation][error] Could not call './tests/data/upload_invalid.sh' : Exec format error 16Warning: [snuffleupagus][upload_validation] Could not call './tests/data/upload_invalid.sh' : Exec format error in Unknown on line 0
17[snuffleupagus][0.0.0.0][upload_validation][drop] The upload of test.php on ? was rejected. 17X-Powered-By: PHP/%a
18Content-type: text/html; charset=UTF-8%a
19%a
20
21Fatal error: [snuffleupagus][upload_validation] The upload of test.php on ? was rejected. in Unknown on line 0
diff --git a/src/tests/upload_validation_ko.phpt b/src/tests/upload_validation_ko.phpt
index 8579a17..d632e60 100644
--- a/src/tests/upload_validation_ko.phpt
+++ b/src/tests/upload_validation_ko.phpt
@@ -11,4 +11,4 @@ Content-Disposition: form-data; name="test"; filename="test.php"
11--blabla-- 11--blabla--
12--FILE-- 12--FILE--
13--EXPECTF-- 13--EXPECTF--
14[snuffleupagus][0.0.0.0][upload_validation][drop] The upload of test.php on ? was rejected. 14Fatal error: [snuffleupagus][upload_validation] The upload of test.php on ? was rejected. in Unknown on line 0 \ No newline at end of file
diff --git a/src/tests/upload_validation_ko_simulation.phpt b/src/tests/upload_validation_ko_simulation.phpt
index d281411..b47c405 100644
--- a/src/tests/upload_validation_ko_simulation.phpt
+++ b/src/tests/upload_validation_ko_simulation.phpt
@@ -12,4 +12,5 @@ Content-Disposition: form-data; name="test"; filename="test.php"
12--FILE-- 12--FILE--
13<?php echo 1337; ?> 13<?php echo 1337; ?>
14--EXPECTF-- 14--EXPECTF--
151337 15Warning: [snuffleupagus][upload_validation] The upload of test.php on ? was rejected. in Unknown on line 0
161337 \ No newline at end of file
diff --git a/src/tests/upload_validation_no_exec.phpt b/src/tests/upload_validation_no_exec.phpt
index 90a58da..ca52017 100644
--- a/src/tests/upload_validation_no_exec.phpt
+++ b/src/tests/upload_validation_no_exec.phpt
@@ -12,7 +12,6 @@ Content-Disposition: form-data; name="test"; filename="test.php"
12--FILE-- 12--FILE--
13<?php 13<?php
14var_dump($_FILES); 14var_dump($_FILES);
15echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
16?> 15?>
17--EXPECTF-- 16--EXPECTF--
18array(1) { 17array(1) {
@@ -30,3 +29,5 @@ array(1) {
30 int(0) 29 int(0)
31 } 30 }
32} 31}
32
33Fatal error: [snuffleupagus][config] The `script` (tests/data/upload_no_exec.sh) isn't executable on line 1 in Unknown on line 0
diff --git a/src/tests/upload_validation_real.phpt b/src/tests/upload_validation_real.phpt
index f1d29d4..d419590 100644
--- a/src/tests/upload_validation_real.phpt
+++ b/src/tests/upload_validation_real.phpt
@@ -41,5 +41,4 @@ Some random text again
41echo 1; 41echo 1;
42?> 42?>
43--EXPECTF-- 43--EXPECTF--
44Upload_validation: Found an opcode: INIT_FCALL 44Fatal error: [snuffleupagus][upload_validation] The upload of test.php on ? was rejected. in Unknown on line 0 \ No newline at end of file
45[snuffleupagus][0.0.0.0][upload_validation][drop] The upload of test.php on ? was rejected.