PHP4 problem (bug?) with UNC pathnames

From: Date: Mon, 12 Feb 2001 16:23:13 +0000
Subject: PHP4 problem (bug?) with UNC pathnames
Groups: php.windows 
Request: Send a blank email to php-windows+get-5527@lists.php.net to get a copy of this message
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

« previous php.windows (#5527) next »