diff options
Diffstat (limited to 'src/tests/disable_function/disabled_function_local_var_const.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_function_local_var_const.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_function_local_var_const.phpt b/src/tests/disable_function/disabled_function_local_var_const.phpt new file mode 100644 index 0000000..8d9d58a --- /dev/null +++ b/src/tests/disable_function/disabled_function_local_var_const.phpt | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable functions - match on a constant | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/disabled_function_local_var_const.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | $a = 1337; | ||
| 10 | define("MY_CONST", $a); | ||
| 11 | strlen("test"); | ||
| 12 | ?> | ||
| 13 | --EXPECTF-- | ||
| 14 | Fatal 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 | ||
