Bug #5

Remove use of DIRECTORY_SEPARATOR

Added by Karsten Dambekalns over 8 years ago. Updated almost 5 years ago.

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

Revision 9e736bb1
Added by Robert Lemke over 7 years ago

  • 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

Also available in: Atom PDF