tony2001                Thu Jun  1 14:03:38 2006 UTC

  Modified files:              
    /php-src/ext/standard       proc_open.c 
  Log:
  suppress_errors is used only on Win32, no need to look for it on other systems
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/proc_open.c?r1=1.41&r2=1.42&diff_format=u
Index: php-src/ext/standard/proc_open.c
diff -u php-src/ext/standard/proc_open.c:1.41 
php-src/ext/standard/proc_open.c:1.42
--- php-src/ext/standard/proc_open.c:1.41       Tue Feb 21 20:12:42 2006
+++ php-src/ext/standard/proc_open.c    Thu Jun  1 14:03:38 2006
@@ -15,7 +15,7 @@
    | Author: Wez Furlong <[EMAIL PROTECTED]>                           |
    +----------------------------------------------------------------------+
  */
-/* $Id: proc_open.c,v 1.41 2006/02/21 20:12:42 dmitry Exp $ */
+/* $Id: proc_open.c,v 1.42 2006/06/01 14:03:38 tony2001 Exp $ */
 
 #if 0 && (defined(__linux__) || defined(sun) || defined(__IRIX__))
 # define _BSD_SOURCE           /* linux wants this when XOPEN mode is on */
@@ -439,7 +439,9 @@
        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 @@
                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 @@
                        }
                }       
        }
+#endif
        
        if (environment) {
                env = _php_array_to_envp(environment, is_persistent TSRMLS_CC);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to