Bug #53214 [NEW]: is_readable() returns false on readable files on windows network drive to linux
| From: | nevdelap at gmail dot com | Date: | Sun, 31 Oct 2010 18:35:51 +0000 |
| Subject: | Bug #53214 [NEW]: is_readable() returns false on readable files on windows network drive to linux | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-155658@lists.php.net to get a copy of this message | ||
From:
Operating system: Windows/Linux
PHP version: 5.3.3
Package: Filesystem function related
Bug Type: Bug
Bug description:is_readable() returns false on readable files on windows network drive to linux
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:\>
--
Edit bug report at http://bugs.php.net/bug.php?id=53214&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53214&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53214&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53214&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53214&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53214&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53214&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53214&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53214&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53214&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53214&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53214&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53214&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53214&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53214&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53214&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53214&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53214&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53214&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53214&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53214&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53214&r=mysqlcfg