[Tickets #6904] VFS_file::_getNativePath fails on Windows
bugs at horde.org
bugs at horde.org
Thu Jun 12 14:27:57 UTC 2008
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/6904
-----------------------------------------------------------------------
Ticket | 6904
Created By | christian.ost at gmail.com
Summary | VFS_file::_getNativePath fails on Windows
Queue | Horde Framework Packages
Version | HEAD
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Milestone |
Patch |
Owners |
-----------------------------------------------------------------------
christian.ost at gmail.com (2008-06-12 10:27) wrote:
_getNativePath does not work on systems running php on top of MS Windows.
The code
if (substr($name, 0, 1) != '/') {
$name = '/' . $name;
}
produces "/C:[...]", which in turn leads to a "Not a directory" error
(e.g. in _listFolder).
As the horde VFS lib is also included in the PEAR repository, this
issue concerns a broad range
of users.
A possible workaround could use the PHP_OS variable (or
PEAR::OS_Guess) for OS-dependent handling, or the realpath function of
php (why a custom UNIX-only function here?)
More information about the bugs
mailing list