[Tickets #6904] Re: VFS_file::_getNativePath fails on Windows

bugs at horde.org bugs at horde.org
Fri Jun 13 07:13:33 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/6904
-----------------------------------------------------------------------
  Ticket             | 6904
  Updated By         | Thomas Jarosch <thomas.jarosch at intra2net.com>
  Summary            | VFS_file::_getNativePath fails on Windows
  Queue              | Horde Framework Packages
  Version            | HEAD
  Type               | Bug
  State              | Feedback
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             | Horde Developers
-----------------------------------------------------------------------


Thomas Jarosch <thomas.jarosch at intra2net.com> (2008-06-13 03:13) wrote:

>> if (substr($name, 0, 1) != '/') {
>>     $name = '/' . $name;
>> }
>>
>> produces "/C:[...]", which in turn leads to a "Not a directory" error
>> (e.g. in _listFolder).

I'm not an expert on this, but Windows uses '\' instead of '/' as  
directory separator. You can see an example output if you look at the  
documentation of realpath() in the comments here:  
http://php.net/manual/de/function.realpath.php.
Maybe PHP accepts path using C:\ and C:/ notation, but our path  
building function is still wrong and will compute wrong paths, no?






More information about the bugs mailing list