]> granicus.if.org Git - php/commitdiff
MFH: 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:49 +0000 (14:03 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 1 Jun 2006 14:03:49 +0000 (14:03 +0000)
ext/standard/proc_open.c

index 6ab5ec44fcc7ece49f6924b0e59b1f4cb4abdfcf..5862a42e03271e7f256d073feaaafc62aa7c3d8f 100644 (file)
@@ -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);