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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC