#35691 [NEW]: Can't change to another drive letter using chdir()

From: Date: Thu, 15 Dec 2005 20:09:53 +0000
Subject: #35691 [NEW]: Can't change to another drive letter using chdir()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90486@lists.php.net to get a copy of this message
From:             ejwaibel at gmail dot com
Operating system: Windows
PHP version:      5.1.1
PHP Bug Type:     *Directory/Filesystem functions
Bug description:  Can't change to another drive letter using chdir()

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 bug report at http://bugs.php.net/?id=35691&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35691&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35691&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35691&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35691&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=35691&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35691&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35691&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35691&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35691&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35691&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=35691&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=35691&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35691&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35691&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35691&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35691&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35691&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35691&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35691&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35691&r=mysqlcfg


Thread (19 messages)

« previous php.bugs (#90486) next »