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

From: Date: Sun, 02 Nov 2008 12:30:19 +0000
Subject: #35691 [Asn->Bgs]: Can't change to another drive letter using chdir()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-130457@lists.php.net to get a copy of this message
 ID:               35691
 Updated by:       jani@php.net
 Reported By:      ejwaibel at gmail dot com
-Status:           Assigned
+Status:           Bogus
 Bug Type:         Directory function related
 Operating System: Windows
 PHP Version:      5CVS-2005-12-19 (snap)
 Assigned To:      pajoye
 New Comment:

See above. Pierre: When you close a bug, CLOSE them.


Previous Comments:
------------------------------------------------------------------------

[2008-06-23 09:54:29] pajoye@php.net

There is no bug here. The documentation (php, posix or msdn) says that
a path is expected. A drive letter is not a path, even not a relative
path.

If it is desired to have php's chdir behaves like chDrive on windows
(netware too?), it could be possible to do it. As it will make chdir
behaviors inconsistent with the system API, it will keep the php code
portable (from an API point of view). 

If not, I can add expose chDrive.

------------------------------------------------------------------------

[2008-06-23 09:34:54] nlopess@php.net

I don't have time to investigate this problem further..

------------------------------------------------------------------------

[2007-05-26 03:34:17] laifanleuk at net-yan dot com

Same problem here.  Try to open_dir to a SUBST'ed directory failed. 
Using XP sp2, Apache 2.2.4 is install by my admin, running as service . 
I have no administrator access right. 

Before my admin installed Apache as service, I was using apache as
normal user, running in console mode.  It worked perfectly then.

------------------------------------------------------------------------

[2006-11-01 15:11:45] nlopess@php.net

I reproduce this with both Windows XP and 2003.

------------------------------------------------------------------------

[2006-11-01 15:05:44] nlopess@php.net

OK, I was able to reproduce the problem.
I used Apache 2.0 and is_dir() doesn't work with network mapped drives.
other drives work and in CLI mode it also works. (it can be because
Apache runs as another user, although I haven't looked further into the
problem)

------------------------------------------------------------------------

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



Thread (19 messages)

« previous php.bugs (#130457) next »