Skip to content

Commit

Permalink
- fix the fix for bug #50524
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrejoye committed Jan 7, 2013
1 parent 485c09a commit c0fae05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/standard/proc_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ PHP_FUNCTION(proc_open)
DWORD dwCreateFlags = 0;
char *command_with_cmd;
UINT old_error_mode;
char cur_cwd[MAXPATHLEN];
#endif
#ifdef NETWARE
char** child_argv = NULL;
Expand Down Expand Up @@ -752,13 +753,13 @@ PHP_FUNCTION(proc_open)

#ifdef PHP_WIN32
if (cwd == NULL) {
char cur_cwd[MAXPATHLEN];
char *getcwd_result;
getcwd_result = VCWD_GETCWD(cur_cwd, MAXPATHLEN);
if (!getcwd_result) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot get current directory");
goto exit_fail;
}
cwd = cur_cwd;
}

memset(&si, 0, sizeof(si));
Expand Down

0 comments on commit c0fae05

Please sign in to comment.