[BUGFIX] Use die() instead of exception for PHP version check 58/35058/2
authorMarkus Klein <klein.t3@reelworx.at>
Thu, 4 Dec 2014 22:01:34 +0000 (23:01 +0100)
committerFrank Nägler <typo3@naegler.net>
Thu, 4 Dec 2014 22:20:10 +0000 (23:20 +0100)
The installer checks for the PHP version and throws and exception.
This is bad for people not having enabled display_errors in their
PHP config and leads to an empty white page.

Change this to simply die() as this will ensure the user can
see the cause of the issue.

Resolves: #63570
Releases: master
Change-Id: I84f5f1e089753beffe17360a636d2d5038ab24a6
Reviewed-on: http://review.typo3.org/35058
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
typo3/sysext/install/Start/Install.php

index d94df62..39d86bb 100644 (file)
@@ -94,7 +94,7 @@
  */
 
 if (version_compare(PHP_VERSION, '5.5.0', '<')) {
-       throw new \Exception('TYPO3 CMS requires PHP 5.5 or above', 1415878732);
+       die('TYPO3 CMS requires PHP 5.5 or above');
 }
 
 define('TYPO3_MODE', 'BE');