Bug #11240

Set UNIX_PATHS flag when using RecursiveDirectoryIterator

Added by Bastian Waidelich over 4 years ago. Updated over 4 years ago.

Status:Resolved Start date:2010-12-02
Priority:Must have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:I18n
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 14
PHP Version: Complexity:
Has patch: Affected Flow version:

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

duplicated by TYPO3.Flow - Bug #10929: F3\FLOW3\Package\Exception\UnknownPackageException thrown... Closed 2010-11-18
duplicated by TYPO3.Flow - Bug #10516: F3\FLOW3\Package\Exception\UnknownPackageException thrown... Closed 2010-10-28

Associated revisions

Revision fd8a18e3
Added by Bastian Waidelich over 4 years ago

[+BUGFIX] FLOW3 (I18n): Set UNIX_PATHS flag when using RecursiveDirectoryIterator

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.

Change-Id: Iee4a4f104698d34f93912e4e4cbc54e7d7a2aec1
Fixes: #11240

History

#1 Updated by Bastian Waidelich over 4 years ago

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

#2 Updated by Karsten Dambekalns over 4 years ago

  • Target version set to 1.0 alpha 14

Also available in: Atom PDF