Hi,

I found following problem (maybe bug ?) in PHP 4.0.x.
When I try to read contents of UNC named directory,  function:
        opendir() always return success even when the directory doesn't exist.
        readdir() always returns nothing even when the directory exists and contain
files.
        is_dir() on the contrary always results in:
                stat failed for ....... (errno=2 - No such file or directory)

When UNC is mapped to letter it seems to work OK.

All this tests I did both using PHP.EXE from command line and from
Apache 1.3.17 with php4apache.dll

When I compiled test C program using readdir.c,readdir.h and strlcpy.c
from PHP 4.0.4PL1 sources - it hapilly passed all my tests.

When downgraded to PHP 3.0.17 CGI, all was working OK.
My problem is, that I need PHP 4.x (I am using COM component) and I don't
like
the idea of mapping UNC pathnames to letters.

My question is: does somebody what should I do ?

thanks
MaT


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to