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

bugs at horde.org bugs at horde.org
Sat Jun 14 17:18:09 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         | Michael Rubinsky <mrubinsk at horde.org>
  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
-----------------------------------------------------------------------


Michael Rubinsky <mrubinsk at horde.org> (2008-06-14 13:18) wrote:

> 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.

Well, according to the realpath() documentation, one of the points of  
realpath() is to convert unix-style to windows style when appropriate,  
so the result of realpath should be a windows friendly path.

..but another thought *did* occur to me, that realpath() seems to  
actually perform a file_exists check on the path and returns FALSE if  
it's not found (unless your on a BSD system - in which case it will  
only return false if the path minus the trailing /xxx doesn't exist).   
So.... I don't think this function is a viable option as it will break  
a lot of our VFS functionality.





More information about the bugs mailing list