From 67b8c698b0641daa579c96ca3334e738f763ac74 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sat, 14 Jul 2018 09:08:37 +0800 Subject: [PATCH] update php version requirement --- README.md | 4 ++-- README_EN.md | 4 ++-- composer.json | 2 +- index.php | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1b3e6da9..ade0eabd 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Travis Building Status Codecov Latest Stable Version -PHP 5.5.9+ +PHP 7.0.0+ License Twitter Follow

@@ -41,7 +41,7 @@ Blessing Skin 是一个开源的 PHP 项目,这意味着您可以自由地在 Blessing Skin 对您的服务器有一定的要求。_在大多数情况下,下列所需的 PHP 扩展已经开启。_ - 一台支持 URL 重写的主机,Nginx、Apache 或 IIS -- **PHP >= 5.5.9** [(服务器不支持?)](https://github.com/printempw/blessing-skin-server/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E) +- **PHP >= 7.0.0** [(服务器不支持?)](https://github.com/printempw/blessing-skin-server/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E) - 安装并启用如下 PHP 扩展: - OpenSSL - PDO diff --git a/README_EN.md b/README_EN.md index 504c3b1d..01d411df 100644 --- a/README_EN.md +++ b/README_EN.md @@ -7,7 +7,7 @@ Travis Building Status Codecov Latest Stable Version -PHP 5.5.9+ +PHP 7.0.0+ License Twitter Follow

@@ -41,7 +41,7 @@ Requirements Blessing Skin has only a few system requirements. _In most cases, these PHP extensions are already enabled._ - Web server with URL rewriting enabled -- **PHP >= 5.5.9** (use v2.x branch if your server doesn't meet the requirements) +- **PHP >= 7.0.0** (use v2.x branch if your server doesn't meet the requirements) - OpenSSL PHP Extension - PDO PHP Extension - Mbstring PHP Extension diff --git a/composer.json b/composer.json index ed5439cf..de692ceb 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "A web application brings your custom skins back in offline Minecraft servers.", "license": "GPL-3.0", "require": { - "php": ">=5.5.9", + "php": ">=7.0.0", "filp/whoops": "^2.1", "predis/predis": "~1.0", "gregwar/captcha": "^1.1", diff --git a/index.php b/index.php index 1725bb38..0b8060a9 100755 --- a/index.php +++ b/index.php @@ -10,11 +10,11 @@ @ini_set('display_errors', 'on'); // Check PHP version -if (version_compare(PHP_VERSION, '5.5.9', '<')) { +if (version_compare(PHP_VERSION, '7.0.0', '<')) { header('Content-Type: text/html; charset=UTF-8'); exit( - '[Error] Blessing Skin requires PHP version >= 5.5.9, you are now using '.PHP_VERSION.'
'. - '[错误] 你的 PHP 版本过低('.PHP_VERSION.'),Blessing Skin 要求至少为 5.5.9' + '[Error] Blessing Skin requires PHP version >= 7.0.0, you are now using '.PHP_VERSION.'
'. + '[错误] 你的 PHP 版本过低('.PHP_VERSION.'),Blessing Skin 要求至少为 7.0.0' ); }