#35691 [NEW]: Can't change to another drive letter using chdir()
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)
- ejwaibel at gmail dot com
- nlopess@php.net#35691 [Opn->Fbk]: Can't change to another drive letter using chdir()
- erik dot waibel at cubic dot com#35691 [Com]: Can't change to another drive letter using chdir()
- nlopess@php.net#35691 [Fbk]: Can't change to another drive letter using chdir()
- erik dot waibel at cubic dot com#35691 [Com]: Can't change to another drive letter using chdir()
- nlopess@php.net#35691 [Fbk->Opn]: Can't change to another drive letter using chdir()
- sniper@php.net#35691 [Opn->Asn]: Can't change to another drive letter using chdir()
- nlopess@php.net#35691 [Asn->Opn]: Can't change to another drive letter using chdir()
- nlopess@php.net#35691 [Opn->Fbk]: Can't change to another drive letter using chdir()
- jarek at katnik dot pl#35691 [Com]: Can't change to another drive letter using chdir()
- nlopess@php.net#35691 [NoF->Asn]: Can't change to another drive letter using chdir()
- jarek at katnik dot pl#35691 [Com]: Can't change to another drive letter using chdir()
- thiagomp at gmail dot com#35691 [Com]: Can't change to another drive letter using chdir()
- nlopess@php.net#35691 [Asn]: Can't change to another drive letter using chdir()
- nlopess@php.net#35691 [Asn]: Can't change to another drive letter using chdir()
- laifanleuk at net-yan dot com#35691 [Com]: Can't change to another drive letter using chdir()
- nlopess@php.net#35691 [Asn->Ver]: Can't change to another drive letter using chdir()
- pajoye@php.net#35691 [Ver->Asn]: Can't change to another drive letter using chdir()
- jani@php.net#35691 [Asn->Bgs]: Can't change to another drive letter using chdir()