summaryrefslogtreecommitdiff
path: root/src/tests/disabled_function_param.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disabled_function_param.phpt')
-rw-r--r--src/tests/disabled_function_param.phpt20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/tests/disabled_function_param.phpt b/src/tests/disabled_function_param.phpt
deleted file mode 100644
index 9b8b942..0000000
--- a/src/tests/disabled_function_param.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
1--TEST--
2Disable functions - match on a param
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/disabled_function_param.ini
7--FILE--
8<?php
9function qweqwe($asd) {
10 echo "OK\n";
11}
12
13$asd = Array(2);
14qweqwe(Array(1));
15qweqwe(Array(2));
16?>
17--EXPECTF--
18OK
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