From: Pierre Joye Date: Fri, 4 Sep 2009 06:59:08 +0000 (+0000) Subject: - be sure that we use the user token by default (Christian Wenz) X-Git-Tag: php-5.3.2RC1~550 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=542c087a865329dca7ed354a8a8e7523418c1fa7;p=php - be sure that we use the user token by default (Christian Wenz) --- diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index 589ee1e1ef..58216efa9d 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -318,7 +318,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *ptype = (char *)type; HANDLE thread_token = NULL; HANDLE token_user = NULL; - BOOL asuser = FALSE; + BOOL asuser = TRUE; TSRMLS_FETCH(); @@ -380,7 +380,6 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, if (err == ERROR_NO_TOKEN) { asuser = FALSE; } - } cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")+2);