From: Antony Dovgal Date: Thu, 1 Jun 2006 14:03:38 +0000 (+0000) Subject: suppress_errors is used only on Win32, no need to look for it on other systems X-Git-Tag: BEFORE_NEW_OUTPUT_API~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01bc25e4b65fcfccb63473c5abfd15e02f1aa343;p=php 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 4d2dbca644..5b2d54de6e 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -439,7 +439,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; @@ -451,6 +453,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)) { @@ -459,6 +462,7 @@ PHP_FUNCTION(proc_open) } } } +#endif if (environment) { env = _php_array_to_envp(environment, is_persistent TSRMLS_CC);