ID: 48746
Comment by: phpstuff at cresstone dot com
Reported By: ddkees at illinois dot edu
Status: Feedback
Bug Type: Directory function related
Operating System: win32 only - Windows Server 2003
PHP Version: 5.3.0
Assigned To: pajoye
New Comment:
'mnt' is a regular directory. 'junction' was indeed pointing to the
root of a volume. However, I get exactly the same behavior if I create
the junction as a link to anouther directory via the junction.exe from
sysinternals. Again, this is a log from Windows 7 x64:
C:\mnt\test>type phptest.php
<?php
var_dump(file_exists('junction'));
var_dump(file_exists('directory'));
?>
C:\mnt\test>dir
Volume in drive C is coreI7_System
Volume Serial Number is 38E2-2B62
Directory of C:\mnt\test
2009.08.10 16.11 <DIR> .
2009.08.10 16.11 <DIR> ..
2009.08.11 08.22 <DIR> directory
2009.08.10 16.10 <JUNCTION> junction
[\??\C:\mnt\test\directory]
2009.08.10 16.11 82 phptest.php
1 File(s) 82 bytes
4 Dir(s) 24,210,726,912 bytes free
C:\mnt\test>php.exe phptest.php
bool(false)
bool(true)
Previous Comments:
------------------------------------------------------------------------
[2009-08-11 06:32:56] [email protected]
Did you mount another drive in c:\mnt?
------------------------------------------------------------------------
[2009-08-11 05:39:54] [email protected]
Sorry but I can't reproduce it on vista/win7/2k8 but only on 2k3 and
xp.
How exactly did you create the junctions on these platforms? It looks
like you create a junction to the root of another drive, right?
------------------------------------------------------------------------
[2009-08-10 22:30:09] phpstuff at cresstone dot com
For what it's worth, I've reproduced the incorrect behavior on the
following OSes so far:
Windows 7 x64
Vista x64 SP2
Server 2003 x64 SP2
XP SP2
For other readers, these are the submitted issues I've found that may
be related to this bug:
http://bugs.php.net/bug.php?id=48778
http://bugs.php.net/bug.php?id=48746
http://bugs.php.net/bug.php?id=48975
http://bugs.php.net/bug.php?id=49039
------------------------------------------------------------------------
[2009-08-10 21:41:37] [email protected]
and confirmed using XP SP3 as well.
For the record, get the junction command here:
http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
------------------------------------------------------------------------
[2009-08-10 20:23:35] [email protected]
Ok, seems to be 2k3 specific. The same setup works on 2k8/vista/win7.
Thanks for your feedback!
------------------------------------------------------------------------
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/48746
--
Edit this bug report at http://bugs.php.net/?id=48746&edit=1