[!!!][TASK] Early check for PHP 5.5 in Install Tool 56/34056/3
authorXavier Perseguers <xavier@typo3.org>
Thu, 13 Nov 2014 12:00:11 +0000 (13:00 +0100)
committerXavier Perseguers <xavier@typo3.org>
Thu, 13 Nov 2014 12:53:33 +0000 (13:53 +0100)
PHP 5.5 or above is a requirement for TYPO3 CMS. As code is using
specific PHP 5.5 features, an early check is required in Install Tool.

Releases: master
Resolves: #62914
Change-Id: Ia33b5e16d5cc96edc7cad5a4348fce5fb1b1236a
Reviewed-on: http://review.typo3.org/34056
Reviewed-by: Benjamin Mack <benni@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Breaking-62914-EarlyCheckPHP55InInstallTool.rst [new file with mode: 0644]
typo3/sysext/install/Start/Install.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-62914-EarlyCheckPHP55InInstallTool.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-62914-EarlyCheckPHP55InInstallTool.rst
new file mode 100644 (file)
index 0000000..5e585bc
--- /dev/null
@@ -0,0 +1,27 @@
+==========================================================
+Breaking: #62914 - Early check for PHP 5.5 in Install Tool
+==========================================================
+
+Description
+===========
+
+PHP 5.5 or above is a requirement for TYPO3 CMS v7.0. As code is using specific PHP 5.5 features, an
+early check is required in Install Tool.
+
+
+Impact
+======
+
+Install Tool will throw an exception if PHP 5.5 or above is not detected.
+
+
+Affected installations
+======================
+
+Any installation without at least PHP 5.5.
+
+
+Migration
+=========
+
+Upgrade to PHP 5.5 or above.
index 83ee1e6..d94df62 100644 (file)
  *   can exist yet.
  */
 
+if (version_compare(PHP_VERSION, '5.5.0', '<')) {
+       throw new \Exception('TYPO3 CMS requires PHP 5.5 or above', 1415878732);
+}
+
 define('TYPO3_MODE', 'BE');
 define('TYPO3_enterInstallScript', '1');