summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-06-01 14:03:38 +0000
committerAntony Dovgal <tony2001@php.net>2006-06-01 14:03:38 +0000
commit01bc25e4b65fcfccb63473c5abfd15e02f1aa343 (patch)
treebbac2a49cbfe761252c0db54b1ed479b9400c0d5
parent3e5407b16dedd1b22bd95c35415cc47a9c77a056 (diff)
downloadphp-git-01bc25e4b65fcfccb63473c5abfd15e02f1aa343.tar.gz
suppress_errors is used only on Win32, no need to look for it on other systems
-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);