From f3ef8d30f155f0314113e72236fc95b00c04f10b Mon Sep 17 00:00:00 2001
From: Pig Fang
Date: Sat, 14 Jul 2018 14:53:41 +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 ade0eabd..44bc10f4 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
-
+
@@ -41,7 +41,7 @@ Blessing Skin 是一个开源的 PHP 项目,这意味着您可以自由地在
Blessing Skin 对您的服务器有一定的要求。_在大多数情况下,下列所需的 PHP 扩展已经开启。_
- 一台支持 URL 重写的主机,Nginx、Apache 或 IIS
-- **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 >= 7.1.3** [(服务器不支持?)](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 01d411df..0ff04132 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -7,7 +7,7 @@
-
+
@@ -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 >= 7.0.0** (use v2.x branch if your server doesn't meet the requirements)
+- **PHP >= 7.1.3** (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 82ebb6c1..321c4473 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": ">=7.0.0",
+ "php": ">=7.1.3",
"filp/whoops": "^2.1",
"predis/predis": "~1.0",
"gregwar/captcha": "^1.1",
diff --git a/index.php b/index.php
index 0b8060a9..5cb0639e 100755
--- a/index.php
+++ b/index.php
@@ -10,11 +10,11 @@
@ini_set('display_errors', 'on');
// Check PHP version
-if (version_compare(PHP_VERSION, '7.0.0', '<')) {
+if (version_compare(PHP_VERSION, '7.1.3', '<')) {
header('Content-Type: text/html; charset=UTF-8');
exit(
- '[Error] Blessing Skin requires PHP version >= 7.0.0, you are now using '.PHP_VERSION.'
'.
- '[错误] 你的 PHP 版本过低('.PHP_VERSION.'),Blessing Skin 要求至少为 7.0.0'
+ '[Error] Blessing Skin requires PHP version >= 7.1.3, you are now using '.PHP_VERSION.'
'.
+ '[错误] 你的 PHP 版本过低('.PHP_VERSION.'),Blessing Skin 要求至少为 7.1.3'
);
}