From: Dmitry Stogov Date: Thu, 12 Apr 2007 15:28:58 +0000 (+0000) Subject: Fixed bug #41063 (chdir doesn't like root paths). X-Git-Tag: php-5.2.2RC2~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f2022743ba606522b458fc9a98141ae10b81db7;p=php Fixed bug #41063 (chdir doesn't like root paths). --- diff --git a/NEWS b/NEWS index 242ebb91ee..287a3b2d07 100644 --- a/NEWS +++ b/NEWS @@ -1,9 +1,11 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Apr 2007, PHP 5.2.2RC2 +- Fixed bug #41063 (chdir doesn't like root paths). (Dmitry) - Fixed bug #40861 (strtotime() doesn't handle double negative relative time units correctly). (Derick) + 10 Apr 2007, PHP 5.2.2RC1 - Improved bundled GD . Sync to 2.0.35 diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index b00d83187f..ccb7ea553c 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -568,6 +568,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);