Bug #61749
closedSystemEnvironmentBuilder reports "Unable to determine path to entry script." on Windows Systems
100%
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
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
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
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
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
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
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
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
Updated by Alexander Bohndorf about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 2b9bd40768f03846ec2cea53ddce4b686259b2f5.