[BUGFIX] Raise required PCRE version 22/53022/2
authorStephan Großberndt <stephan@grossberndt.de>
Wed, 24 May 2017 14:09:18 +0000 (16:09 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 2 Jun 2017 10:19:33 +0000 (12:19 +0200)
Warn about an outdated PCRE version which is not compatible to PHP 7.0
in the Install Tool to make aware of possible PHP crashes in the TYPO3
backend.

Releases: master, 8.7
Resolves: #81335
Change-Id: I0db145146eb02bcab81a83195f375c87ae85f3e4
Reviewed-on: https://review.typo3.org/53022
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
INSTALL.md
typo3/sysext/install/Classes/SystemEnvironment/Check.php

index 2977775..c2fe451 100644 (file)
@@ -72,7 +72,7 @@ check if these are available.
   * filter
   * hash
   * openssl
-  * pcre >= 8.30
+  * pcre >= 8.38
   * session
   * soap
   * SPL
index cffea82..596a8f3 100644 (file)
@@ -274,7 +274,7 @@ class Check implements CheckInterface
      */
     protected function checkPcreVersion()
     {
-        $minimumPcreVersion = '8.30';
+        $minimumPcreVersion = '8.38';
         if (!extension_loaded('pcre')) {
             $status = new Status\ErrorStatus();
             $status->setTitle('PHP extension pcre not loaded');
@@ -284,9 +284,9 @@ class Check implements CheckInterface
                 ' in with minimum version ' . $minimumPcreVersion . '.'
             );
         } else {
-            $installedPcreVersionString = trim(PCRE_VERSION); // '8.31 2012-07-06'
+            $installedPcreVersionString = trim(PCRE_VERSION); // '8.39 2016-06-14'
             $mainPcreVersionString = explode(' ', $installedPcreVersionString);
-            $mainPcreVersionString = $mainPcreVersionString[0]; // '8.31'
+            $mainPcreVersionString = $mainPcreVersionString[0]; // '8.39'
             if (version_compare($mainPcreVersionString, $minimumPcreVersion) < 0) {
                 $status = new Status\ErrorStatus();
                 $status->setTitle('PCRE version too low');