diff options
Diffstat (limited to 'src/tests/disable_function/disabled_functions_shell_exec_wrong.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_functions_shell_exec_wrong.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_shell_exec_wrong.phpt b/src/tests/disable_function/disabled_functions_shell_exec_wrong.phpt new file mode 100644 index 0000000..580679c --- /dev/null +++ b/src/tests/disable_function/disabled_functions_shell_exec_wrong.phpt | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable functions - shell_exec, with a non-existing command | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/disabled_functions.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | $gs = exec( 'foo' ); | ||
| 10 | echo "YES"; | ||
| 11 | ?> | ||
| 12 | --EXPECTF-- | ||
| 13 | %sfoo: not found | ||
| 14 | YES | ||
