From: [EMAIL PROTECTED]
Operating system: Win2K
PHP version: 5CVS-2003-02-10 (dev)
PHP Bug Type: Directory function related
Bug description: Trouble accessing network drives with opendir()
This code:
if ($dir = opendir( $dirPath ) ) {
while ( ( $file = readdir( $dir ) ) !== false) {
echo "$file\n";
}
closedir( $dir );
}
Give me this error:
Warning: opendir(i:\templates) [function.opendir]: failed to open dir:
Invalid argument in C:\www\AndesaNet\function_library.php on line 298
I: is a UNC mapped drive and i:\templates is a network folder that I have
full access to. I can read, write, change and delete files here both from
a DOS prompt and from Windows Explorer.
I am running PHP as a module on Apache2 (win bianaries)
Is this a known bug?
--
Edit bug report at http://bugs.php.net/?id=22153&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22153&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22153&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22153&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22153&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22153&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22153&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22153&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22153&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22153&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22153&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22153&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22153&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22153&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22153&r=gnused