|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-21 08:15 UTC] fantasysportswire at yahoo dot com
[2007-04-26 06:07 UTC] fantasysportswire at yahoo dot com
[2007-05-02 09:52 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 07:00:01 2025 UTC |
Description: ------------ If I use scandir on a virtual drive it returns: Warning: scandir(w:): failed to open dir: Bad file descriptor I have also tried w:\ and w:/ to the same result. However... scandir("w:\\folder") works just fine. realpath does almost the same thing... if from w: I run a script with: <? echo realpath("."); ?> and run it like php -n script.php ... I get nothing If I go into "folder" and run it php -n w:\script.php I returns w:\folder Just to repeat - this only seems to happen in a Virtual (subst) root path. Inside folders in the virtual path work fine. Both incidents happen using the -n flag, so there is no possible setting issue. Reproduce code: --------------- <? echo realpath(".")."\n"; print_r(scandir(".")); ?> Expected result: ---------------- Current Path and an array dump of the files. Actual result: -------------- Nothing for realpath and "Warning: scandir(w:): failed to open dir: Bad file descriptor" for scandir