Issue Bug Closed

#85842Functional frontend tests cannot be executed on some systems

Helmut Hummel 08/14/18, 15:26 updated 10/02/18, 10:30

Description

This is due to the fact, that TYPO3 tries to resolve the path to the entry script in cli mode
by evaluating $_ENV[‘‘] first, then if this ist not set, $_SERVER[’’] is taken.

On systems where $_ENV[‘‘] isn’t populated, this works, as the frontend test bootstrap populates $_SERVER[’’] with the correct value.
However there are some systems, where $_ENV[‘_’] is populated with the path to the PHP binary. In that case it fails
with the error message that TYPO3 is unable to determine path to entry script.

The main culprit though is, that in this scenario TYPO3 tries to determine paths based on a cli environment, while
in fact we emulate a frontend (HTTP server) environment.

Reviews 1