#35691 [NoF->Asn]: Can't change to another drive letter using chdir()

From: Date: Thu, 19 Jan 2006 16:00:12 +0000
Subject: #35691 [NoF->Asn]: Can't change to another drive letter using chdir()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92221@lists.php.net to get a copy of this message
ID: 35691 Updated by: nlopess@php.net Reported By: ejwaibel at gmail dot com -Status: No Feedback +Status: Assigned Bug Type: *Directory/Filesystem functions Operating System: Windows 2003 PHP Version: 5CVS-2005-12-19 (snap) -Assigned To: +Assigned To: nlopess New Comment: OK, so here I go again. bug #36088 states this only happens with Apache (2.0.x) and works in CLI. Previously I had only tested in CLI, so back to testing. Previous Comments: ------------------------------------------------------------------------ [2006-01-19 08:56:15] jarek at katnik dot pl I'm using PHP Version 5.1.2 on MS Windows XP Pro SP2. Drive 'R:' is mounted by ClearCase. When I run script listed bellow I get warrning: Warning: chdir() [function.chdir]: No such file or directory (errno 2) in {scriptName} on line {lineNumber} <?php chdir('R:'); ?> ------------------------------------------------------------------------ [2005-12-28 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-12-20 19:43:20] nlopess@php.net I've installed win 2003 and I can't reproduce the problem. Please double check your 'subst' command (by entering in my computer and see if the drive is listed there, etc..) ------------------------------------------------------------------------ [2005-12-19 17:41:10] nlopess@php.net So, this is only happening with attached drive on Windows 2003. I can only think of a bug in GetLongPathName(). I'll install windows 2003 server somewhere to test. ------------------------------------------------------------------------ [2005-12-19 01:42:04] erik dot waibel at cubic dot com This is what I get when running the code with an existing drive (such as C:) Files in current directory... Array ( [0] => TCdetails.php [1] => TCgetdata.php [2] => TCgetversion.php [3] => TCmanual.php [4] => TCpreview.php [5] => TCprocess.php [6] => TCsearch.php [7] => changes.php [8] => checklist.php [9] => details.php [10] => footer.php [11] => getarq.php [12] => getdata.php [13] => help.php [14] => hints.php [15] => import.php [16] => login.php [17] => manual.php [18] => modules.php [19] => password.php [20] => phpinfo.php [21] => process.php [22] => search.php [23] => srnform_windows.php [24] => stscr.php [25] => user.php ) string(35) "d:\scmtools\test\ctssrn-enhancement" CWD: bool(true) Change dir: string(3) "C:\" CWD: Files in CWD... Array ( [0] => AUTOEXEC.BAT [1] => CONFIG.SYS [2] => Documents and Settings [3] => IO.SYS [4] => Inetpub [5] => MSDOS.SYS [6] => NTDETECT.COM [7] => PHP [8] => Perl [9] => Program Files [10] => RECYCLER [11] => System Volume Information [12] => WINDOWS [13] => boot.ini [14] => dsn [15] => dsn.dir [16] => dsn.pag [17] => mvfslogs [18] => ntldr [19] => pagefile.sys [20] => temp.log [21] => wmpub ) This is what I get when I change to the drive that is being 'subst': Files in current directory... Array ( [0] => TCdetails.php [1] => TCgetdata.php [2] => TCgetversion.php [3] => TCmanual.php [4] => TCpreview.php [5] => TCprocess.php [6] => TCsearch.php [7] => changes.php [8] => checklist.php [9] => details.php [10] => footer.php [11] => getarq.php [12] => getdata.php [13] => help.php [14] => hints.php [15] => import.php [16] => login.php [17] => manual.php [18] => modules.php [19] => password.php [20] => phpinfo.php [21] => process.php [22] => search.php [23] => srnform_windows.php [24] => stscr.php [25] => user.php ) string(35) "d:\scmtools\test\ctssrn-enhancement" CWD: bool(false) Change dir: string(35) "d:\scmtools\test\ctssrn-enhancement" CWD: Files in CWD... Array ( [0] => TCdetails.php [1] => TCgetdata.php [2] => TCgetversion.php [3] => TCmanual.php [4] => TCpreview.php [5] => TCprocess.php [6] => TCsearch.php [7] => cc-get-modules.exe [8] => cc-import.exe [9] => changes.php [10] => checklist.php [11] => details.php [12] => error_log.log [13] => footer.php [14] => getarq.php [15] => getdata.php [16] => help.php [17] => hints.php [18] => import.php [19] => login.php [20] => manual.php [21] => modules.php [22] => password.php [23] => phpinfo.php [24] => process.php [25] => search.php [26] => srnform_windows.php [27] => stscr.php [28] => user.php ) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35691 -- Edit this bug report at http://bugs.php.net/?id=35691&edit=1

« previous php.bugs (#92221) next »