[TYPO3-team-core-v5] Getting rid of DIRECTORY_SEPARATOR reloaded

Bastian Waidelich bastian at typo3.org
Tue Jul 29 16:42:49 CEST 2008


Robert Lemke wrote (by email):

 >> Apparently the PHP constant DIRECTORY_SEPARATOR is not needed at all

 > Yes. Almost. The DIRECTORY_SEPARATOR is still required for the
 > include paths.

Even in include paths it doesn't seem to be needed. At least in my tests
it works with forward and backslashes likewise.
PATH_SEPARATOR has to be used though to specify multiple paths.


 >> So what do you think about a method in F3_FLOW3_Utility_Files
 >> like the following [...]
 >> good? not good?

 > Good!
 > Please commit that function (along with the necessary tests ...).
 > My suggestion for an alternative function name: concatenatePaths().

Yes, concatenate sounds better. I'll commit the changes by thursday.


 > As you are one of the few developing on a windows machine,
 > it's best if you refactor FLOW3 so it uses the new combinePaths
 > method.

OK, I'll do that!


all the best
Bastian

-- 
slice up the elephant, baby!



More information about the TYPO3-team-core-v5 mailing list