]> granicus.if.org Git - php/commitdiff
suppress_errors is used only on Win32, no need to look for it on other systems
authorAntony Dovgal <tony2001@php.net>
Thu, 1 Jun 2006 14:03:38 +0000 (14:03 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 1 Jun 2006 14:03:38 +0000 (14:03 +0000)
ext/standard/proc_open.c

index 4d2dbca64407c523932b8a54f5fe7cd09fd06806..5b2d54de6ea190c387144e41fd02cea1204b39c9 100644 (file)
@@ -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);