#011540: Problems with ezcFile::findRecursive and ezcFile::calculateRelativePath on systems where DIRECTORY_SEPERATOR is not /

Description:

ezcFile::findRecursive uses a hard coded forward slash / for path calculation and returning paths, so if you want to use it on Windows you need to correct the result of getcwd() yourself before you pass it as base path to ezcFile::calculateRelativePath, otherwise you will get returned paths with mixed dir seperators, for example C:\sites\ezunstablephp5/access.php

If you want to use the results of ezcFile::findRecursive again in ezcFile::calculateRelativePath, then in the path you will have to replace / again with the value in the DIRECTORY_SEPERATOR constant before passing the path to ezcFile::calculateRelativePath.


Environment:

Operating System: Windows XP SP2
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Patch for this is here: http://files.derickrethans.nl/patches/ezc-base-file-windows-2007-10-04.diff.txturl

#254235 by Derick Rethans on October 19th, 2007 [Permanent Link]

Fixed in rev. 6526 for Base 1.4alpha2

#254237 by Derick Rethans on October 19th, 2007 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Components Components » Base
Components » File
Affects 1.4alpha1 - Base 1.4alpha1
1.2alpha1 - File 1.2alpha1
Fix Versions 1.4alpha2 - Base 1.4alpha2
2007.2alpha1 - eZ components 2007.2alpha1
Reporter Kristof Coomans
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created October 3rd, 2007
Updated October 19th, 2007
Resolved October 19th, 2007
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels