Issue Bug Closed

#64504PHP 5.4 fatals with unexpected 'class' (T_CLASS) instead of proper error

Stephan Großberndt 01/26/15, 12:30 updated 10/02/18, 11:46

Description

Trying to access www.my-new-install.xxx/ or www.my-new-install.xxx/typo3 with a fresh install of TYPO3 CMS 7 on a PHP 5.4 system will result in a blank screen or

 Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in xxx/typo3/typo3_src-7.0.2/typo3/sysext/core/Classes/Core/Bootstrap.php on line 106

Thus there is no redirect to the install tool showing the proper reason (PHP version too low).

Even though the requirement for PHP 5.5 is stated on the download page, if its not 5.5 the output should be more graceful. Several threads on the mailing list exist of people with blank screens trying to figure out why the install tool doesn’t show up.

There should be a check at least for the PHP-Version in /index.php and /typo3/index.php

Reviews 1