From: Dmitry Stogov Date: Thu, 12 Apr 2007 15:29:10 +0000 (+0000) Subject: Fixed bug #41063 (chdir doesn't like root paths). X-Git-Tag: RELEASE_1_1_0~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c878774f2e2ff70a18f4c8a2be4693f22f18ebee;p=php Fixed bug #41063 (chdir doesn't like root paths). --- diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index 75055fa881..d782065cbd 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -567,6 +567,7 @@ no_realpath: CWD_STATE_COPY(&old_state, state); #ifdef TSRM_WIN32 + ret = 0; is_unc = 0; if (path_length >= 2 && path[1] == ':') { state->cwd = (char *) realloc(state->cwd, 2 + 1);