ID:               22153
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         Directory function related
 Operating System: Win2K
 PHP Version:      5CVS-2003-02-10 (dev)
 New Comment:

Yes.

I tried it with my previous installation (DEV 4.4) and I also
donwloaded and installed the latest stable release from
http://snaps.php.net/ some time yesterday (2/10/03) and I have the same
problem with all three versions. For some reason OpenDir does not
appear to be fond of mapped drives.

Thanks again for looking into this...Do you have all the information
you need?


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

[2003-02-11 20:41:00] [EMAIL PROTECTED]

Forgot to ask, but does this happen with PHP 4.3.0 ?
Or preferrably, with the latest STABLE snapshot from
http://snaps.php.net/ ??


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

[2003-02-11 09:48:49] [EMAIL PROTECTED]

Dear Gracious and Grand Volunteer (how's that for laying it on think?!)
:-) Seriously, thanks for what your volunteer team does, PHP is a
fantastic piece of work thanks to the effort of all of you who make it
a reality. Thanks.

On to the Problem at hand:

When I use the OpenDir() function on a UNC mapped network drive (code
snippet submitted previously on 2/10/03), The OpenDir() function does
not return a reference to the requested directory.

It works fine for a local drive such as "C:\" or "D:\" but when I try
to use "I:\" or "I:\templates" which is a UNC mapping to my intranet
web server of "\\intranet\www\templates" it does not reconize the
drive. I am able to access this drive from DOS and from Windows
Explorer. I have full access to the drive (read, write, modify, delete,
etc.). I am running PHP as an Apache module (Apache 2.0.43 win32) and I
am running Apache as a service on Win2K SP3.

I have read through the bug database and have parused the news groups.
I have seen similar instances of this problem but none with a specific
fix. Most entries are marked "Bogus" or "Need More Info".

In two instances there is a reference to giving new authorites to the
Apache user or to change the Apache to a different user with
appropriate privileges. I am assuming that this refers to Linux/UNIX
version of Apache as the User ID I am running Apache under in Win2K has
accesss to these network drivers and directories.

A specific, detailed example of a fix would be most helpful and
appreciated.

Thanks again.

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

[2003-02-10 17:56:23] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


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

[2003-02-10 15:50:29] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=22153&edit=1

Reply via email to