update php version requirement
This commit is contained in:
parent
437bec5b63
commit
f3ef8d30f1
@ -7,7 +7,7 @@
|
||||
<a href="https://travis-ci.org/printempw/blessing-skin-server"><img src="https://api.travis-ci.org/printempw/blessing-skin-server.svg?branch=master" alt="Travis Building Status"></a>
|
||||
<a href="https://codecov.io/gh/printempw/blessing-skin-server"><img src="https://codecov.io/gh/printempw/blessing-skin-server/branch/master/graph/badge.svg" alt="Codecov" /></a>
|
||||
<a href="https://github.com/printempw/blessing-skin-server/releases"><img src="https://poser.pugx.org/printempw/blessing-skin-server/version" alt="Latest Stable Version"></a>
|
||||
<img src="https://img.shields.io/badge/PHP-7.0.0+-orange.svg" alt="PHP 7.0.0+">
|
||||
<img src="https://img.shields.io/badge/PHP-7.1.3+-orange.svg" alt="PHP 7.1.3+">
|
||||
<img src="https://poser.pugx.org/printempw/blessing-skin-server/license" alt="License">
|
||||
<a href="https://twitter.com/printempw"><img src="https://img.shields.io/twitter/follow/printempw.svg?style=social&label=Follow" alt="Twitter Follow"></a>
|
||||
</p>
|
||||
@ -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
|
||||
|
@ -7,7 +7,7 @@
|
||||
<a href="https://travis-ci.org/printempw/blessing-skin-server"><img src="https://api.travis-ci.org/printempw/blessing-skin-server.svg?branch=master" alt="Travis Building Status"></a>
|
||||
<a href="https://codecov.io/gh/printempw/blessing-skin-server"><img src="https://codecov.io/gh/printempw/blessing-skin-server/branch/master/graph/badge.svg" alt="Codecov" /></a>
|
||||
<a href="https://github.com/printempw/blessing-skin-server/releases"><img src="https://poser.pugx.org/printempw/blessing-skin-server/version" alt="Latest Stable Version"></a>
|
||||
<img src="https://img.shields.io/badge/PHP-7.0.0+-orange.svg" alt="PHP 7.0.0+">
|
||||
<img src="https://img.shields.io/badge/PHP-7.1.3+-orange.svg" alt="PHP 7.1.3+">
|
||||
<img src="https://poser.pugx.org/printempw/blessing-skin-server/license" alt="License">
|
||||
<a href="https://twitter.com/printempw"><img src="https://img.shields.io/twitter/follow/printempw.svg?style=social&label=Follow" alt="Twitter Follow"></a>
|
||||
</p>
|
||||
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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.'<br>'.
|
||||
'[错误] 你的 PHP 版本过低('.PHP_VERSION.'),Blessing Skin 要求至少为 7.0.0'
|
||||
'[Error] Blessing Skin requires PHP version >= 7.1.3, you are now using '.PHP_VERSION.'<br>'.
|
||||
'[错误] 你的 PHP 版本过低('.PHP_VERSION.'),Blessing Skin 要求至少为 7.1.3'
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user