ID: 35691 Updated by: [EMAIL PROTECTED] Reported By: ejwaibel at gmail dot com -Status: Open +Status: Feedback Bug Type: *Directory/Filesystem functions Operating System: Windows PHP Version: 5.1.1 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip Sorry, but I can't reproduce this behaviour. I'm able to chdir() between drives with PHP 5.1.2 from snaps.php.net and with PHP 6 built by me. I've also tested on two different machines with windows XP. And what is your windows version? Previous Comments: ------------------------------------------------------------------------ [2005-12-15 21:09:52] ejwaibel at gmail dot com Description: ------------ The chdir() command works correctly when changing to a given dir in the SAME drive, however, I believe that it should be capable of changing to another drive letter and then directory in that drive letter. I know that Windows can do that using "cd /D <path>". Reproduce code: --------------- $currentDir = getcwd(); echo "currentDir: $currentDir<br/>"; chdir("Q:\\sdadmin") || die(sendMessage("Can't change to '$substDrive\\sdadmin'", true)); echo getcwd(); Expected result: ---------------- I would have expected to change from "D:\scmtools\oss\" to "Q:\sdadmin". Actual result: -------------- The chdir() function returns false and I show an error message. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35691&edit=1