Bug #5
Remove use of DIRECTORY_SEPARATOR
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Robert Lemke | % Done: | 0% |
|
Category: | - | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: | Affected Flow version: |
Description
Currently a lot of places use the PHP constant DIRECTORY_SEPARATOR. This constant belongs to the directory functions (see http://de.php.net/manual/en/ref.dir.php), i.e. it is not even defined for the usual filesystem functions like fopen nor is it required for include/require. PHP translates a forward slash automagically on Windows.
When specifying paths in php.ini it is even required to always use a forward slash, even when on Windows.
What I want to say is: let's remove this ugly thing and just use / everywhere.
For the sake of completeness: when calling local commands with exec() and friends one has to use the "right" separator, this is when it might come in handy...
Associated revisions
- FLOW3: (index.php) Simplified the TYPO3_ROOT_PATH definition (which will have to rename soon). Relates to #5
History
#1 Updated by Karsten Dambekalns over 8 years ago
- Status changed from New to Closed
- Sprint set to fixed