summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_param_pos2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disable_function/disabled_functions_param_pos2.phpt')
-rw-r--r--src/tests/disable_function/disabled_functions_param_pos2.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_param_pos2.phpt b/src/tests/disable_function/disabled_functions_param_pos2.phpt
new file mode 100644
index 0000000..87e18c0
--- /dev/null
+++ b/src/tests/disable_function/disabled_functions_param_pos2.phpt
@@ -0,0 +1,13 @@
1--TEST--
2Disable functions - match on argument's position, not the first time
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/disabled_functions_pos.ini
7--FILE--
8<?php
9strlen("od");
10strlen("id");
11?>
12--EXPECTF--
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