php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50923 File_exists returns false on UNC paths
Submitted: 2010-02-03 10:08 UTC Modified: 2010-02-03 10:45 UTC
From: loke at xstream dot dk Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.3.1 OS: Windows 2008
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: loke at xstream dot dk
New email:
PHP Version: OS:

 

 [2010-02-03 10:08 UTC] loke at xstream dot dk
Description:
------------
I am trying to access files on a network path like
\\10.1.2.3\storage\folder1\movies\test.mp4

More precisely i am trying to ftp_put this file. This does not seem to work, and when i test using file_exists() on the file it also returns false.

This is odd however since i can easily access it using "Run" in windows. And i have a C# based service which also can readily access it, and even when the php is executed from the C# service (thereby using the same credentials) it fails.

Reproduce code:
---------------
<?php
var_dump(file_exists("\\10.1.2.3\storage\folder1\movies\test.mp4"));
?>

Expected result:
----------------
bool(true)

Actual result:
--------------
bool(false)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-03 10:45 UTC] loke at xstream dot dk
I of course forgot backslashes
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 23:01:32 2025 UTC