|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55553 Readable mounted SSHFS drive is considered unreable
Submitted: 2011-08-31 13:56 UTC Modified: 2020-11-18 14:50 UTC
Avg. Score:4.4 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:3 (60.0%)
From: clement dot herreman at gmail dot com Assigned: cmb (profile)
Status: Feedback Package: Filesystem function related
PHP Version: 5.3.8 OS: WinServer 2003, Std Edition SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: clement dot herreman at gmail dot com
New email:
PHP Version: OS:


 [2011-08-31 13:56 UTC] clement dot herreman at gmail dot com
I'm using a software to mount a FTP as a windows hard drive through SSH ( 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:
// 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-31 14:05 UTC] clement dot herreman at gmail dot com
Little typo in the description. The problem is not that "is_writeable(...) always returns false", but that "is_readable(...) always returns false".
 [2020-11-18 14:50 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-11-18 14:50 UTC]
Is this still an issue with any of the actively supported PHP
versions[1]?  If so, please run

    fsutil reparsePoint query E:\mulated\Drive

and provide the "Reparse Tag Value".

[1] <>
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 23 16:07:58 2020 UTC