[!!!][TASK] Raise PHP requirement to 7.0 78/46878/8
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 24 Feb 2016 15:58:40 +0000 (16:58 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 25 Feb 2016 14:04:22 +0000 (15:04 +0100)
TYPO3 CMS 8 requires at least PHP 7.0

Change-Id: I9fad64c48270a4ac1122fb28f52da5579d46e629
Resolves: #73655
Releases: master
Reviewed-on: https://review.typo3.org/46878
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
INSTALL.md
composer.json
composer.lock
index.php
typo3/index.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-73655-Php7Required.rst [new file with mode: 0644]
typo3/sysext/core/composer.json
typo3/sysext/install/Classes/SystemEnvironment/Check.php
typo3/sysext/install/Start/Install.php

index d1321ea..617ceb4 100644 (file)
@@ -29,7 +29,7 @@ TYPO3 requires a web server with a PHP environment and a database. The minimum
 system requirements for running TYPO3 CMS 7 are:
 
 * Webserver capable of running PHP applications (Apache, Nginx, IIS or other)
-* PHP 5.5 up to 7
+* PHP 7
 * MySQL 5.5 up to 5.7 or compatible
 * more than 200 MB of disk space
 
@@ -102,7 +102,7 @@ functionality:
 * GraphicsMagick or ImageMagick v6 or newer installed on the server
 
 * PHP
-  * version 5.5 or later
+  * version 7.0 or later
   * memory_limit set to at least 128M
   * max_execution_time set to at least 240s
   * max_input_vars set to at least 1500
index 4a54cc9..16ebb8e 100644 (file)
@@ -31,7 +31,7 @@
                "typo3/sysext/core/bin/typo3"
        ],
        "require": {
-               "php": ">=5.5.0",
+               "php": "^7.0",
                "ext-fileinfo": "*",
                "ext-pcre": "*",
                "ext-session": "*",
index 29f9152..883037f 100644 (file)
@@ -4,8 +4,8 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "hash": "d82010931f4b3f551ff805703546e330",
-    "content-hash": "b59659f5b2535ad6bb94aee98b5cc34c",
+    "hash": "7409c214d0bde2f2a0c3486cc3be5648",
+    "content-hash": "692062c6f4cac0b8a9b0426cd2016daf",
     "packages": [
         {
             "name": "cogpowered/finediff",
     "prefer-stable": false,
     "prefer-lowest": false,
     "platform": {
-        "php": ">=5.5.0",
+        "php": "^7.0",
         "ext-fileinfo": "*",
         "ext-pcre": "*",
         "ext-session": "*",
index 0627918..092dca7 100644 (file)
--- a/index.php
+++ b/index.php
  * delivered pages goes to in the frontend (the website)
  */
 
-/*
- * This check avoids a parse error "unexpected 'class'" for users installing TYPO3 CMS 7
- * on PHP 5.4. Without it the redirect to the install tool does not work.
- * @see https://forge.typo3.org/issues/64504
- */
-if (version_compare(PHP_VERSION, '5.5.0', '<')) {
-    die('TYPO3 CMS requires PHP 5.5 or above');
+// Exit early if php requirement is not satisfied.
+if (version_compare(PHP_VERSION, '7.0.0', '<')) {
+    die('This version of TYPO3 CMS requires PHP 7.0 or above');
 }
 
 // Set up the application for the Frontend
index a3cb7a5..a02ef22 100644 (file)
  * The TYPO3 project - inspiring people to share!
  */
 
+// Exit early if php requirement is not satisfied.
+if (version_compare(PHP_VERSION, '7.0.0', '<')) {
+    die('This version of TYPO3 CMS requires PHP 7.0 or above');
+}
+
 /**
  * Main entry point for all backend-related scripts.
  */
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-73655-Php7Required.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-73655-Php7Required.rst
new file mode 100644 (file)
index 0000000..57644cf
--- /dev/null
@@ -0,0 +1,15 @@
+=================================
+Breaking: #73655 - PHP 7 required
+=================================
+
+Description
+===========
+
+TYPO3 CMS 8 requires PHP 7. The system will exit with a message if this
+requirement is not fulfilled.
+
+
+Migration
+=========
+
+Upgrade to at least PHP 7.0.0.
\ No newline at end of file
index 843fc4b..8e59098 100644 (file)
@@ -6,7 +6,7 @@
        "license": ["GPL-2.0+"],
 
        "require": {
-               "php" : ">=5.5.0"
+               "php" : "^7.0"
        },
        "replace": {
                "core": "*"
index 98b642b..e4d6d01 100644 (file)
@@ -283,7 +283,7 @@ class Check
      */
     protected function checkPhpVersion()
     {
-        $minimumPhpVersion = '5.5.0';
+        $minimumPhpVersion = '7.0.0';
         $currentPhpVersion = phpversion();
         if (version_compare($currentPhpVersion, $minimumPhpVersion) < 0) {
             $status = new Status\ErrorStatus();
index 96fade3..45e4885 100644 (file)
  *   can exist yet.
  */
 
-/*
- * This check avoids a parse error "unexpected 'class'" for users installing TYPO3 CMS 7
- * on PHP 5.4. Without it the redirect to the install tool does not work.
- * @see https://forge.typo3.org/issues/64504
- */
-if (version_compare(PHP_VERSION, '5.5.0', '<')) {
-    die('TYPO3 CMS requires PHP 5.5 or above');
+// Exit early if php requirement is not satisfied.
+if (version_compare(PHP_VERSION, '7.0.0', '<')) {
+    die('This version of TYPO3 CMS requires PHP 7.0 or above');
 }
 
-// set up bare minimum application: class loader, LocalConfiguration, but no extensions and such
 call_user_func(function () {
     $classLoader = require __DIR__ . '/../../../../vendor/autoload.php';
     (new \TYPO3\CMS\Install\Http\Application($classLoader))->run();