Bug #11240

Set UNIX_PATHS flag when using RecursiveDirectoryIterator

Added by Bastian Waidelich about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
I18n
Start date:
2010-12-02
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Currently FLOW3 breaks on Windows, because the I18n service uses the RecursiveDirectoryIterator without setting the 2nd argument to RecursiveDirectoryIterator::UNIX_PATHS in order to use the forward slash as directory separator.
Usually that wouldn't matter, cause PHP file functions accept Windows style paths as well. For paths that use the "resource" scheme though, this breaks as the ResourceStreamWrapper gets a path like "MyPackage\Foo\Bar" and fails to extract the package key from that.
One solution would be, to call \F3\FLOW3\Utility\Files::getUnixStylePath() on the given path in the stream wrapper.
But specifying the UNIX_PATHS flag is probably the faster solution.


Related issues

Has duplicate TYPO3.Flow - Bug #10929: F3\FLOW3\Package\Exception\UnknownPackageException thrown in file PackageManager.phpClosed2010-11-18

Actions
Has duplicate TYPO3.Flow - Bug #10516: F3\FLOW3\Package\Exception\UnknownPackageException thrown in file PackageManager.phpClosed2010-10-28

Actions
#1

Updated by Bastian Waidelich about 11 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100
#2

Updated by Karsten Dambekalns about 11 years ago

  • Target version set to 1.0 alpha 14

Also available in: Atom PDF