From 7d170680627037b64e6d5274f4f206a0309fe98d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 22 Oct 2015 22:10:19 +1300 Subject: [PATCH] Increase minimum required PHP version to 5.5 See mailinglist discussion at https://groups.google.com/forum/#!topic/silverstripe-dev/7mVvhNNeNps --- .travis.yml | 4 ++-- composer.json | 2 +- dev/install/install.php | 6 +++--- dev/install/install.php5 | 4 ++-- dev/install/php5-required.html | 8 ++++---- docs/en/00_Getting_Started/00_Server_Requirements.md | 2 +- .../04_Other_installation_Options/Windows_IIS7.md | 9 ++++----- docs/en/04_Changelogs/4.0.0.md | 1 + main.php | 4 ++-- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index 26c899a38..9d99600ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,9 +17,9 @@ env: matrix: include: - - php: 5.4 + - php: 5.5 env: DB=MYSQL - - php: 5.4 + - php: 5.5 env: DB=PGSQL - php: 5.5 env: DB=SQLITE diff --git a/composer.json b/composer.json index e590f59b5..be24a1a53 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } ], "require": { - "php": ">=5.4.0", + "php": ">=5.5.0", "composer/installers": "~1.0", "monolog/monolog": "~1.11", "league/flysystem": "~1.0.12", diff --git a/dev/install/install.php b/dev/install/install.php index fb1a35655..62f7dd64a 100644 --- a/dev/install/install.php +++ b/dev/install/install.php @@ -4,17 +4,17 @@ ************************************************************************************ ** ** ** If you can read this text in your browser then you don't have PHP installed. ** - ** Please install PHP 5.3.3 or higher, preferably PHP 5.3.4+. ** + ** Please install PHP 5.5.0 or higher. ** ** ** ************************************************************************************ ************************************************************************************/ /** - * PHP version check. Make sure we've got at least PHP 5.3.3 in the most friendly way possible + * PHP version check. Make sure we've got at least PHP 5.5.0 in the most friendly way possible */ define('FRAMEWORK_NAME', 'framework'); -if (version_compare(phpversion(), '5.3.3', '<')) { +if (version_compare(phpversion(), '5.5.0', '<')) { header("HTTP/1.1 500 Server Error"); echo str_replace( array('$PHPVersion', 'sapphire'), diff --git a/dev/install/install.php5 b/dev/install/install.php5 index 4b117e851..be39ef66f 100755 --- a/dev/install/install.php5 +++ b/dev/install/install.php5 @@ -4,7 +4,7 @@ ************************************************************************************ ** ** ** If you can read this text in your browser then you don't have PHP installed. ** - ** Please install PHP 5.3.3 or higher, preferably PHP 5.3.4+. ** + ** Please install PHP 5.5.0 or higher. ** ** ** ************************************************************************************ ************************************************************************************/ @@ -382,7 +382,7 @@ class InstallRequirements { $isIIS = $this->isIIS(); $webserver = $this->findWebserver(); - $this->requirePHPVersion('5.3.4', '5.3.3', array( + $this->requirePHPVersion('5.5.0', '5.5.0', array( "PHP Configuration", "PHP5 installed", null, diff --git a/dev/install/php5-required.html b/dev/install/php5-required.html index c151b77d9..7906a854d 100644 --- a/dev/install/php5-required.html +++ b/dev/install/php5-required.html @@ -1,18 +1,18 @@ - PHP 5.3.3 is required + PHP 5.5.0 is required