summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/proc_open.c4
1 files changed, 4 insertions, 0 deletions
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);