diff options
Diffstat (limited to 'src/tests/disable_function/disabled_functions_shell_exec_include_data.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_functions_shell_exec_include_data.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_shell_exec_include_data.phpt b/src/tests/disable_function/disabled_functions_shell_exec_include_data.phpt new file mode 100644 index 0000000..4c13db6 --- /dev/null +++ b/src/tests/disable_function/disabled_functions_shell_exec_include_data.phpt | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable functions - shell_exec via include(data://) | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | <?php if (PHP_VERSION_ID < 70400) print "skip"; ?> | ||
| 6 | --INI-- | ||
| 7 | sp.configuration_file={PWD}/config/disabled_functions_extra.ini | ||
| 8 | allow_url_include=1 | ||
| 9 | --FILE-- | ||
| 10 | <?php | ||
| 11 | include('data://text/plain,'.urlencode('<?php shell_exec("ls");')); | ||
| 12 | ?> | ||
| 13 | --EXPECTF-- | ||
| 14 | Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0 | ||
| 15 | |||
| 16 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'shell_exec', %a matched a rule in data%a line 1 \ No newline at end of file | ||
