|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-31 19:47 UTC] pajoye@php.net
-Status: Open
+Status: Feedback
-Operating System: Windows/Linux
+Operating System: Windows
[2010-10-31 19:47 UTC] pajoye@php.net
[2010-10-31 19:54 UTC] nevdelap at gmail dot com
-Status: Feedback
+Status: Open
[2010-10-31 19:54 UTC] nevdelap at gmail dot com
[2010-10-31 19:55 UTC] nevdelap at gmail dot com
[2010-10-31 20:33 UTC] pajoye@php.net
-Status: Open
+Status: Feedback
[2010-10-31 20:33 UTC] pajoye@php.net
[2010-10-31 20:43 UTC] nevdelap at gmail dot com
-Status: Feedback
+Status: Closed
[2010-10-31 20:43 UTC] nevdelap at gmail dot com
[2010-10-31 20:44 UTC] pajoye@php.net
-Status: Closed
+Status: Bogus
[2010-10-31 20:44 UTC] pajoye@php.net
[2014-08-19 06:41 UTC] a959193 at trbvm dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 09:00:01 2025 UTC |
Description: ------------ This is the setup I have. Windows guest in a VirtualBox with a network drive connected to a network share on the virtual machine to an ext3 directory on the Linux host. In other words in Windows N: is connected to \\vboxsvr\nev which is the directory /home/nev on the Linux box. Php is_readable($file) where $file is a filename on the N: drive returns false though the file is readable. Test script: --------------- <?php assert(!is_readable('N:\test.txt')); echo file_get_contents('N:\test.txt'); ?> Expected result: ---------------- If the test is on C:\ it works correctly. The assertion fails. C:\test.txt contains the text 'this is a test'. <?php assert(!is_readable('C:\test.txt')); echo file_get_contents('C:\test.txt'); ?> C:\>php test.php PHP Warning: assert(): Assertion failed in C:\test.php on line 2 Warning: assert(): Assertion failed in C:\test.php on line 2 this is a test C:\> Actual result: -------------- N:\test.txt contains the text 'this is a test'. <?php assert(!is_readable('N:\test.txt')); echo file_get_contents('N:\test.txt'); ?> Gives this result... N:\>php test.php this is a test N:\>