|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-18 15:15 UTC] pajoye@php.net
[2009-11-18 21:17 UTC] aiso at chawerim dot nl
[2009-11-18 22:50 UTC] pajoye@php.net
[2009-11-26 01:00 UTC] php-bugs at lists dot php dot net
[2009-12-03 12:48 UTC] aiso at chawerim dot nl
[2009-12-03 13:19 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
Description: ------------ file_exists() fails for files on network share. Although these files can be perfectly read by e.g. file_get_contents(). So these files really do exist! file_exists() works without problems for files not on a share such as 'C:\Program Files\PHP\php.ini'. Can reproduce also with '\\\\.HOST\\SHARED FOLDERS\\data\\php.ini' Using php 5.3.0 (VC9 x86 Non Thread Safe (2009-Jun-30 08:52:54)) on windows XP Pro SP3. safe_mode is off. This is tested on windows console (cmd.exe). User is admin and is allowed to go and read files on this share. Reproduce code: --------------- $file = '//.HOST/SHARED FOLDERS/data/php.ini'; error_log(substr(file_get_contents($file),0,100)); if (file_exists($file)) { error_log("does exist"); } else { error_log("does not exist"); } Expected result: ---------------- First 100 characters of php.ini file + 'does exist' Actual result: -------------- First 100 characters of php.ini file + 'does not exist'