diff options
Diffstat (limited to 'src/tests/disabled_function_param.phpt')
| -rw-r--r-- | src/tests/disabled_function_param.phpt | 20 |
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-- | ||
| 2 | Disable functions - match on a param | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/disabled_function_param.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | function qweqwe($asd) { | ||
| 10 | echo "OK\n"; | ||
| 11 | } | ||
| 12 | |||
| 13 | $asd = Array(2); | ||
| 14 | qweqwe(Array(1)); | ||
| 15 | qweqwe(Array(2)); | ||
| 16 | ?> | ||
| 17 | --EXPECTF-- | ||
| 18 | OK | ||
| 19 | |||
| 20 | Fatal 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 | ||
