Project

General

Profile

Actions

Bug #15827

closed

CLI Mode does not work properly under windows 2003 server

Added by Mathias Schreiber over 18 years ago. Updated over 18 years ago.

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

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

init.php does check for paths in several ways.
PHP under windows 2003 server gives back backward slashes if "dirname" is used.
init.php then checks if ../typo3conf/ is avaliable in that path.
During calls from the webserver this is totally fine, since apache will convert those slashes to forward slashes and we are fine again.
PHP Command Line interface keeps the backslashes.

Set up a command line class as you wish.
Get burried in errors and PHPINFO output.
:)

init.php in 4.0RC1:
Add these lines on line 80 and following:
if (defined('TYPO3_cliMode') && TYPO3_OS == 'WIN') {
$temp_path = str_replace('\\','/',$temp_path);
}
These "fixed" path will work for the check.
(issue imported from #M2871)


Files

bug-2871-1.diff (694 Bytes) bug-2871-1.diff Administrator Admin, 2006-06-07 15:12
Actions

Also available in: Atom PDF