Bug #11240
Set UNIX_PATHS flag when using RecursiveDirectoryIterator
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
Associated revisions
[+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
Applied in changeset fd8a18e3e9f4c4c945909fa9edc6df9615e6eb03.
#2 Updated by Karsten Dambekalns over 4 years ago
- Target version set to 1.0 alpha 14