#20813 [Opn->Fbk]: opendir() returns errno22 with UNC path

From: Date: Wed, 04 Dec 2002 23:53:46 +0000
Subject: #20813 [Opn->Fbk]: opendir() returns errno22 with UNC path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26663@lists.php.net to get a copy of this message
ID: 20813 Updated by: sniper@php.net Reported By: paprocki@pomerantz.com -Status: Open +Status: Feedback Bug Type: Directory function related Operating System: NT4SP6 IIS PHP Version: 4.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-12-04 13:12:41] paprocki@pomerantz.com Just installed fresh 4.2.3 ISAPI on Win2000 and still produces same error. Does this have something to do with the target UNC? ------------------------------------------------------------------------ [2002-12-04 10:44:27] paprocki@pomerantz.com Bug #9354 also produces same result Bug #6445 is the same problem Bug #12699 is the same problem Bug #12524 is the same problem Is this only NT4??? ------------------------------------------------------------------------ [2002-12-04 10:34:08] paprocki@pomerantz.com if ($handle = opendir("//server/share")) { while ($file = readdir($handle)) { echo "$file<br>"; } closedir($handle); } produces: Warning: OpenDir: Invalid argument (errno 22) I have tried setting the UNC share permissions to both Everyone - Read and Everyone - Full Control and it does not matter. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20813&edit=1

« previous php.bugs (#26663) next »