diff options
| author | Ben Fuhrmannek | 2021-12-14 15:25:31 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-12-14 15:25:31 +0100 |
| commit | c3fddfecfab29504097932184389a94251991bc7 (patch) | |
| tree | aed5a7cf688c743ca9cb6e26cfbfe1e3b8fd9113 /src/tests/disable_function/disabled_functions_proc_open.phpt | |
| parent | a5dcbb8cb802ba18e618ca38ea8e6acbf8b133ff (diff) | |
test cases for testing edge cases, eval and cmd execution
Diffstat (limited to 'src/tests/disable_function/disabled_functions_proc_open.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_functions_proc_open.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_proc_open.phpt b/src/tests/disable_function/disabled_functions_proc_open.phpt new file mode 100644 index 0000000..7c8c7eb --- /dev/null +++ b/src/tests/disable_function/disabled_functions_proc_open.phpt | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | --TEST-- | ||
| 2 | Disable functions - proc_open | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/disabled_functions_extra.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | $descriptorspec = array( | ||
| 10 | 0 => array("pipe", "r"), | ||
| 11 | 1 => array("pipe", "w"), | ||
| 12 | 2 => array("pipe", "w") | ||
| 13 | ); | ||
| 14 | echo proc_open('ls', $descriptorspec, $pipes); | ||
| 15 | ?> | ||
| 16 | --EXPECTF-- | ||
| 17 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'proc_open' in %a.php on line 7 | ||
