Project

General

Profile

Actions

Bug #61749

closed

SystemEnvironmentBuilder reports "Unable to determine path to entry script." on Windows Systems

Added by Alexander Bohndorf over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2014-09-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

tested on Windows 2012 Server R2 with php 5.4.22 in TYPO3 CMS 6.1.9 on CLI:

> C:\php-cli\php.exe -f c:\Apache2.2\intranet\typo3\cli_dispatch.phpsh

results in error message "Unable to determine path to entry script".

Caused by a regular expression with missing /i in
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php:411

Replace

 if (!preg_match('/^([A-Z]:)?\\\\/', $scriptPath)) {

with

 if (!preg_match('/^([A-Z]:)?\\\\/i', $scriptPath)) {

Workaround: Use capitalized drive letters, f.e.


> C:\php-cli\php.exe -f C:\Apache2.2\intranet\typo3\cli_dispatch.phpsh

Patchfile is attached.


Files

SystemEnvironmentBuilder.patch (671 Bytes) SystemEnvironmentBuilder.patch Alexander Bohndorf, 2014-09-19 18:04
Actions

Also available in: Atom PDF