[TYPO3-core] RFC: #13925: Cache framework FileBackend doesn't work on windows when configured with absolute paths

Steffen Kamper info at sk-typo3.de
Fri Mar 26 23:35:22 CET 2010


Hi,

This is SVN patch request.

Type: Bugfix

Branches: trunk

BT reference: http://bugs.typo3.org/view.php?id=13925

Problem:
when you configure the Filebackend in windows with absolute path, example:
array('cacheDirectory' => 'C:/xampp/htdocs/tv/t3cache/')

you will get an exeption that the path 'C:/xampp/htdocs/tv/t3cache/' 
doesn't exists.
I wondered, the path is correct and folder exist, but the FileBackend 
checks for '/' as first char for absolute path, and if not present, the 
path is concatenated with PATH_site.

So following is needed:
1) if on windows do a different check for absolute path
2) if the dir doesn't exist, print in exceptionthe path from the check 
(in this case PATH_site . configuredPath)

vg Steffen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13925.diff
Type: text/x-diff
Size: 1551 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100326/02323b84/attachment.diff>


More information about the TYPO3-team-core mailing list