Project

General

Profile

Actions

Bug #24460

closed

[Cache] Filebackend fails on windows

Added by Steffen Kamper almost 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2011-01-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The filebackend fails on windows it setCacheDirectory is used with relative path.

This is due a missing check, which is done for other OS.

Check for non-windows:

if ($cacheDirectory[0] == '/') {
        // Absolute path to cache directory.
    $documentRoot = '/';
}

Error for windows:

if (TYPO3_OS === 'WIN') {
    $documentRoot = '';
}

should be:

if (TYPO3_OS === 'WIN') {
    if (substr($cacheDirectory, 0,  strlen($documentRoot)) === $documentRoot) {
        $documentRoot = '';
    }
}

(issue imported from #M16900)


Files

16900.patch (672 Bytes) 16900.patch Administrator Admin, 2011-01-03 19:35

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #24350: FileBackend tests are broken on windowsClosedChristian Kuhn2010-12-17

Actions
Actions

Also available in: Atom PDF