php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6554 file_exists not working with UNC names
Submitted: 2000-09-05 10:44 UTC Modified: 2001-03-23 03:43 UTC
From: scottk at ganymede dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.1pl2 OS: Win NT Server 4.0 SP5
Private report: No CVE-ID: None
 [2000-09-05 10:44 UTC] scottk at ganymede dot 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 machine\share\file

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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-05 11:09 UTC] stas@php.net
Actually, I guess nothing is working with UNC pathes in PHP. Windows file naming schemes suck very badly.
 [2001-03-23 03:43 UTC] dbeu@php.net
fixed in cvs, but you'll have to wait for 4.0.6
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 02:01:30 2024 UTC