php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48020 mkdir not recognizing virtual directory
Submitted: 2009-04-20 03:11 UTC Modified: 2009-04-20 06:54 UTC
From: thinknirmal at gmail dot com Assigned: pajoye (profile)
Status: Not a bug Package: Filesystem function related
PHP Version: 5.2.9 OS: Windows Server 2008
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: thinknirmal at gmail dot com
New email:
PHP Version: OS:

 

 [2009-04-20 03:11 UTC] thinknirmal at gmail dot com
Description:
------------
The mkdir function is not recognizing virtual directories created using IIS 7.0.

Is this a bug?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-20 05:47 UTC] pajoye@php.net
Virtual directories are not real folders.
 [2009-04-20 05:48 UTC] pajoye@php.net
For the record here, run to list them:

%windir%\system32\inetsrv\appcmd list vdirs  
 [2009-04-20 05:51 UTC] thinknirmal at gmail dot com
I agree virtual directory is not a real folder.
But the target is always a physical folder. Logically, php should play with the target physical folder when a virtual directory is referred to.
 [2009-04-20 06:22 UTC] pajoye@php.net
There is no symlink or directory created, so there is no way for PHP or any other application to know them without calling the IIS API functions. ASP.net has PhysicalApplicationPath or ApplicationPath (along other), FCGI only knows about the physical path. It would be very slow and inefficient if we would have to manually resolve these paths on each request or file operation (from a php script for example).
 [2009-04-20 06:54 UTC] thinknirmal at gmail dot com
Thanks for the explanation.
You are right that it would be a slower process.

Right now I am handling this by having the physical path as a defined variable and using it all over the file system functions.

But it would be better if php could check with fcgi whether it's a virtual directory if the physical folder is not present. This will come handy when a user chooses to move a folder to a remote location. Then there won't be any need to modify the codes.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC