Bug #55553 [NEW]: Readable mounted SSHFS drive is considered unreable
| From: | clement dot herreman at gmail dot com | Date: | Wed, 31 Aug 2011 13:56:51 +0000 |
| Subject: | Bug #55553 [NEW]: Readable mounted SSHFS drive is considered unreable | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-163190@lists.php.net to get a copy of this message | ||
From:
Operating system: WinServer 2003, Std Edition SP2
PHP version: 5.3.8
Package: Filesystem function related
Bug Type: Bug
Bug description:Readable mounted SSHFS drive is considered unreable
Description:
------------
I'm using a software to mount a FTP as a windows hard drive through SSH
(http://dokan-dev.net/en/). It kind of like using fuse on linux, but for
Windows.
The problem is that is_writeable('E:\mulated\Drive\folder') always returns
false, although I can use readdir('E:\mulated\Drive\folder') to list
file/folder, and file_get/put_contents() to read/write on files.
It's not really serious once you know it, but it's really annoying when
using third-party library that refuse to works on these paths.
Test script:
---------------
<?php
// First mount any FTP via DokanSSH FS as a Windows Drive,
// and assign it to the E: letter.
// Create a folder E:\test, and a file E:\test\file.txt
echo file_get_contents('E:\test\file.txt'); //Works.
var_dump(is_readable('E:\test\file.txt')); // bool(false)
Expected result:
----------------
is_readable('E:\test\file.txt') should return true, as the file is
readable, since file_get_contents('E:\test\file.txt') return the actual
content of the file.
Actual result:
--------------
is_readable('E:\test\file.txt') returns false.
--
Edit bug report at https://bugs.php.net/bug.php?id=55553&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55553&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55553&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55553&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55553&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55553&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55553&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55553&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55553&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55553&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55553&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55553&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55553&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55553&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55553&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55553&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55553&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55553&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55553&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55553&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55553&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55553&r=mysqlcfg