Project

General

Profile

Actions

Bug #61749

closed

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

Added by Alexander Bohndorf about 10 years ago. Updated about 6 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 #1

Updated by Philipp Gampe about 10 years ago

  • Status changed from New to Accepted

This will break on Linux (or any case sensitive file system). It would be better to adapt the matching group:

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

Can you push a patch to our review system? http://wiki.typo3.org/CWT

Actions #2

Updated by Gerrit Code Review about 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32914

Actions #3

Updated by Gerrit Code Review about 10 years ago

Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32915

Actions #4

Updated by Gerrit Code Review about 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32914

Actions #5

Updated by Gerrit Code Review about 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32914

Actions #6

Updated by Gerrit Code Review about 10 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33320

Actions #7

Updated by Gerrit Code Review about 10 years ago

Patch set 2 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32915

Actions #8

Updated by Alexander Bohndorf about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF