dmitry          Thu Aug 21 11:28:09 2008 UTC

  Modified files:              
    /php-src/ext/standard       proc_open.c 
  Log:
  Adder error code into error message
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/proc_open.c?r1=1.63&r2=1.64&diff_format=u
Index: php-src/ext/standard/proc_open.c
diff -u php-src/ext/standard/proc_open.c:1.63 
php-src/ext/standard/proc_open.c:1.64
--- php-src/ext/standard/proc_open.c:1.63       Wed Jul 23 11:24:35 2008
+++ php-src/ext/standard/proc_open.c    Thu Aug 21 11:28:09 2008
@@ -15,7 +15,7 @@
    | Author: Wez Furlong <[EMAIL PROTECTED]>                           |
    +----------------------------------------------------------------------+
  */
-/* $Id: proc_open.c,v 1.63 2008/07/23 11:24:35 tony2001 Exp $ */
+/* $Id: proc_open.c,v 1.64 2008/08/21 11:28:09 dmitry Exp $ */
 
 #if 0 && (defined(__linux__) || defined(sun) || defined(__IRIX__))
 # define _BSD_SOURCE           /* linux wants this when XOPEN mode is on */
@@ -762,6 +762,8 @@
        }
        
        if (FALSE == newprocok) {
+               DWORD dw = GetLastError();
+
                /* clean up all the descriptors */
                for (i = 0; i < ndesc; i++) {
                        CloseHandle(descriptors[i].childend);
@@ -769,7 +771,7 @@
                                CloseHandle(descriptors[i].parentend);
                        }
                }
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "CreateProcess 
failed");
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "CreateProcess 
failed, error code - %u", dw);
                goto exit_fail;
        }
 



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

Reply via email to