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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Sat May 04 00:01:31 2024 UTC