From: Antony Dovgal Date: Thu, 1 Jun 2006 14:03:49 +0000 (+0000) Subject: MFH: suppress_errors is used only on Win32, no need to look for it on other systems X-Git-Tag: php-5.2.0RC1~391 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=112f263591e3007a9fcc172171b39608844e5c86;p=php MFH: suppress_errors is used only on Win32, no need to look for it on other systems --- diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 6ab5ec44fc..5862a42e03 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -501,7 +501,9 @@ PHP_FUNCTION(proc_open) php_process_id_t child; struct php_process_handle *proc; int is_persistent = 0; /* TODO: ensure that persistent procs will work */ +#ifdef PHP_WIN32 int suppress_errors = 0; +#endif #if PHP_CAN_DO_PTS php_file_descriptor_t dev_ptmx = -1; /* master */ php_file_descriptor_t slave_pty = -1; @@ -517,6 +519,7 @@ PHP_FUNCTION(proc_open) RETURN_FALSE; } +#ifdef PHP_WIN32 if (other_options) { zval **item; if (SUCCESS == zend_hash_find(Z_ARRVAL_P(other_options), "suppress_errors", sizeof("suppress_errors"), (void**)&item)) { @@ -525,6 +528,7 @@ PHP_FUNCTION(proc_open) } } } +#endif command_len = strlen(command);