[BUGFIX] Improve resolving path to autoload.php 60/44060/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Wed, 14 Oct 2015 14:52:52 +0000 (16:52 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sun, 22 Nov 2015 14:52:06 +0000 (15:52 +0100)
The patch improves the resolving of autoload.php for
frontend requests in order to support Windows systems
with symlinked core, but copied index.php

Resolves: #70700
Related: #69011
Releases: master
Change-Id: Icede0bd4907ae8ff418df39715b94fc8324a2ad8
Reviewed-on: https://review.typo3.org/44060
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
index.php

index 69e4484..0627918 100644 (file)
--- a/index.php
+++ b/index.php
@@ -29,6 +29,6 @@ if (version_compare(PHP_VERSION, '5.5.0', '<')) {
 
 // Set up the application for the Frontend
 call_user_func(function () {
-    $classLoader = require __DIR__ . '/typo3/../vendor/autoload.php';
+    $classLoader = require rtrim(realpath(__DIR__ . '/typo3'), '\\/') . '/../vendor/autoload.php';
     (new \TYPO3\CMS\Frontend\Http\Application($classLoader))->run();
 });