Bug #11470: UNC paths do not work with stat()

From: Date: Wed, 13 Jun 2001 19:28:33 +0000
Subject: Bug #11470: UNC paths do not work with stat()
Groups: php.dev 
Request: Send a blank email to php-dev+get-57116@lists.php.net to get a copy of this message
From: jeremy@deadbeef.com Operating system: Windows NT 4.0 Build 1381 PHP version: 4.0 Latest CVS (2001-06-13) PHP Bug Type: Filesystem function related Bug description: UNC paths do not work with stat() Calling stat() on a UNC path will always fail. ex. stat("\\\\computername\\share\\file"); will get a file not found error. I fixed the bug, here is the patch: cvs server: Diffing TSRM Index: TSRM/tsrm_virtual_cwd.c =================================================================== RCS file: /repository/TSRM/tsrm_virtual_cwd.c,v retrieving revision 1.19 diff -u -r1.19 tsrm_virtual_cwd.c --- TSRM/tsrm_virtual_cwd.c 2001/05/05 16:05:19 1.19 +++ TSRM/tsrm_virtual_cwd.c 2001/06/13 19:28:51 @@ -315,7 +315,7 @@ is_absolute = 1; #ifdef TSRM_WIN32 } else if (IS_UNC_PATH(path_copy, path_length)) { - copy_amount = 1; + copy_amount = COPY_WHEN_ABSOLUTE; is_absolute = 1; } else if (IS_SLASH(path_copy[0])) { copy_amount = 2; -- Edit Bug report at: http://bugs.php.net/?id=11470&edit=1

« previous php.dev (#57116) next »