Issue Bug Rejected

#52848ClassLoader fails when typo3temp is symlink

Thorsten Kahler 10/15/13, 15:06 updated 10/17/13, 18:22

Description

Method \TYPO3\CMS\Core\Cache\Backend\ClassLoaderBackend::setLinkToPhpFile() uses __DIR__ to construct the path to the file to be included. This fails when folder typo3temp is symlinked.

Quick fix: use getcwd() instead of __DIR__. But since the constructed files are caches for path resolving (as far as I understand) the absolute path should be written to the cache (= PHP file) instead of being calculated there.

Reviews 1