diff options
Diffstat (limited to 'src/tests/disable_function/disabled_functions_regexp_multiple.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_functions_regexp_multiple.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_regexp_multiple.phpt b/src/tests/disable_function/disabled_functions_regexp_multiple.phpt new file mode 100644 index 0000000..79f1fc7 --- /dev/null +++ b/src/tests/disable_function/disabled_functions_regexp_multiple.phpt | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable functions | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/disabled_functions_regexp.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | echo strlen("id") . "\n"; | ||
| 10 | echo strcmp("1", "2") . "\n"; | ||
| 11 | print("After") . "\n"; | ||
| 12 | ?> | ||
| 13 | --EXPECTF-- | ||
| 14 | Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_functions_regexp_multiple.php on line 2 | ||
| 15 | 2 | ||
| 16 | |||
| 17 | Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strcmp' in %a/disabled_functions_regexp_multiple.php on line 3 | ||
| 18 | -1 | ||
| 19 | After \ No newline at end of file | ||
