From: Dmitry Stogov Date: Thu, 21 Aug 2008 11:27:42 +0000 (+0000) Subject: Adder error code into error message X-Git-Tag: php-5.2.7RC1~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0c05b2643cfbe28f6c959e38c4ddd816f6f1e96;p=php Adder error code into error message --- diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index cd4c7b70e0..b8b2bb3bb3 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -769,6 +769,8 @@ PHP_FUNCTION(proc_open) } if (FALSE == newprocok) { + DWORD dw = GetLastError(); + /* clean up all the descriptors */ for (i = 0; i < ndesc; i++) { CloseHandle(descriptors[i].childend); @@ -776,7 +778,7 @@ PHP_FUNCTION(proc_open) 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; }