Issue Bug Closed

#24959Make createVersionNumberedFilename() use native dirname() function

Steffen Gebert 02/04/11, 17:22 updated 10/06/14, 09:53

Description

t3lib_div::createVersionNumberedFilename() calls t3lib_div::dirname() which explodes the path.
The whole thing is called few hundered times, while opening the Backend. This takes ~1.5% of the BE generation time.

Calling PHP’s native dirname() function could speed up createVersionNumberedFilename, we just have to take care of the slightly differences! (providing /foo/bar/ returns /foo/, currently we get /foo/bar/)

(issue imported from #M17487)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.