PHP 4.0 Bug #6554 Updated: file_exists not working with UNC names

From: Date: Tue, 05 Sep 2000 15:09:30 +0000
Subject: PHP 4.0 Bug #6554 Updated: file_exists not working with UNC names
Groups: php.dev 
Request: Send a blank email to php-dev+get-32193@lists.php.net to get a copy of this message
ID: 6554 Updated by: stas Reported By: scottk@ganymede.com Status: Analyzed Bug Type: Scripting Engine problem Assigned To: Comments: Actually, I guess nothing is working with UNC pathes in PHP. Windows file naming schemes suck very badly. Previous Comments: [2000-09-05 10:44:42] scottk@ganymede.com Web Server : Apache 1.3.9 (win32) Reproduce : On a Windows NT box with PHP and Apache, create a page the calls the file_exists func on a known machinesharefile You will need to create a share on that machine or another. For example : if (file_exists("\\machine\share\fred.txt") { echo "Exists<BR>"; } else { echo "Does not Exist<BR>"; } The file_exists function will always return false. The function works fine with drive letter associations, but not for UNC notation on win32. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6554

« previous php.dev (#32193) next »