summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-01-15 16:29:00 +0000
committerWez Furlong <wez@php.net>2003-01-15 16:29:00 +0000
commit1a314027d3c388a19a06ac370fa08a46d474e1bd (patch)
tree4ca436f14abdec9d18c3c27a9cf193464a68828b /ext/standard/basic_functions.c
parentea0f37fc764addc24c1ee70ed6fa827a9b183966 (diff)
downloadphp-git-1a314027d3c388a19a06ac370fa08a46d474e1bd.tar.gz
- Move proc_open code to a source file of it's own.
- Tidy up that netware mess by performing a configure check which will define the symbol PHP_CAN_SUPPORT_PROC_OPEN if PHP can support proc_open. - Protected the proc_open specific code with #ifdef PHP_CAN_SUPPORT_PROC_OPEN so that user-space scripts can use function_exists and react accordingly. ** Heads Up Win32: You need to add ext/standard/proc_open.c to the DSP and ** #define PHP_CAN_SUPPORT_PROC_OPEN in the w32 config header.
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 68cf56964d..5ebd8c5388 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -411,8 +411,10 @@ function_entry basic_functions[] = {
PHP_FE(escapeshellarg, NULL)
PHP_FE(passthru, second_arg_force_ref)
PHP_FE(shell_exec, NULL)
+#ifdef PHP_CAN_SUPPORT_PROC_OPEN
PHP_FE(proc_open, third_arg_force_ref)
PHP_FE(proc_close, NULL)
+#endif
PHP_FE(rand, NULL)
PHP_FE(srand, NULL)
@@ -1063,7 +1065,9 @@ PHP_MINIT_FUNCTION(basic)
PHP_MINIT(array)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(assert)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(url_scanner_ex)(INIT_FUNC_ARGS_PASSTHRU);
+#ifdef PHP_CAN_SUPPORT_PROC_OPEN
PHP_MINIT(proc_open)(INIT_FUNC_ARGS_PASSTHRU);
+#endif
PHP_MINIT(user_streams)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(imagetypes)(INIT_FUNC_ARGS_PASSTHRU);