Issue Bug Closed

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

Alexander Bohndorf 09/19/14, 18:04 updated 10/02/18, 11:54

Description

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

<pre> > 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.

Reviews 3