increase PHP version requirement
This commit is contained in:
parent
ed04dd1740
commit
537d34c0bf
|
|
@ -7,7 +7,7 @@
|
|||
<a href="https://github.com/bs-community/blessing-skin-server/actions"><img src="https://github.com/bs-community/blessing-skin-server/workflows/CI/badge.svg" alt="Build Status"></a>
|
||||
<a href="https://codecov.io/gh/bs-community/blessing-skin-server/branch"><img src="https://flat.badgen.net/codecov/c/github/bs-community/blessing-skin-server" alt="Codecov" /></a>
|
||||
<a href="https://github.com/bs-community/blessing-skin-server/releases"><img src="https://flat.badgen.net/github/release/bs-community/blessing-skin-server" alt="Latest Stable Version"></a>
|
||||
<img src="https://flat.badgen.net/badge/PHP/7.2.0+/orange" alt="PHP 7.2.0+">
|
||||
<img src="https://flat.badgen.net/badge/PHP/7.2.5+/orange" alt="PHP 7.2.5+">
|
||||
<img src="https://flat.badgen.net/github/license/bs-community/blessing-skin-server" alt="License">
|
||||
</p>
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ Blessing Skin 是一个开源的 PHP 项目,这意味着您可以自由地在
|
|||
Blessing Skin 对您的服务器有一定的要求。_在大多数情况下,下列所需的 PHP 扩展已经开启。_
|
||||
|
||||
- 一台支持 URL 重写的主机,Nginx 或 Apache
|
||||
- **PHP >= 7.2.0** [(服务器不支持?)](https://blessing.netlify.com/versions.html)
|
||||
- **PHP >= 7.2.5** [(服务器不支持?)](https://blessing.netlify.com/versions.html)
|
||||
- 安装并启用如下 PHP 扩展:
|
||||
- OpenSSL
|
||||
- PDO
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<a href="https://github.com/bs-community/blessing-skin-server/actions"><img src="https://github.com/bs-community/blessing-skin-server/workflows/CI/badge.svg" alt="Build Status"></a>
|
||||
<a href="https://codecov.io/gh/bs-community/blessing-skin-server/branch"><img src="https://flat.badgen.net/codecov/c/github/bs-community/blessing-skin-server" alt="Codecov" /></a>
|
||||
<a href="https://github.com/bs-community/blessing-skin-server/releases"><img src="https://flat.badgen.net/github/release/bs-community/blessing-skin-server" alt="Latest Stable Version"></a>
|
||||
<img src="https://flat.badgen.net/badge/PHP/7.2.0+/orange" alt="PHP 7.2.0+">
|
||||
<img src="https://flat.badgen.net/badge/PHP/7.2.5+/orange" alt="PHP 7.2.5+">
|
||||
<img src="https://flat.badgen.net/github/license/bs-community/blessing-skin-server" alt="License">
|
||||
</p>
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ Blessing Skin is an open-source project written in PHP, which means you can depl
|
|||
Blessing Skin has only a few system requirements. _In most cases, these PHP extensions are already enabled._
|
||||
|
||||
- Web server with URL rewriting enabled (Nginx or Apache)
|
||||
- **PHP >= 7.2.0** (use v2.x branch if your server doesn't meet the requirements)
|
||||
- **PHP >= 7.2.5**
|
||||
- OpenSSL PHP Extension
|
||||
- PDO PHP Extension
|
||||
- Mbstring PHP Extension
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
);
|
||||
}
|
||||
|
||||
$requiredVersion = '7.2.0';
|
||||
$requiredVersion = '7.2.5';
|
||||
preg_match('/(\d+\.\d+\.\d+)/', PHP_VERSION, $matches);
|
||||
$version = $matches[1];
|
||||
if (version_compare($version, $requiredVersion, '<')) {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"description": "A web application brings your custom skins back in offline Minecraft servers.",
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": ">=7.2.0",
|
||||
"php": ">=7.2.5",
|
||||
"ext-ctype": "*",
|
||||
"ext-gd": "*",
|
||||
"ext-json": "*",
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
- Tweaked policy of retrieve CA cert for GuzzleHttp.
|
||||
- Refactor account system.
|
||||
- PHP version requirement is increased to 7.2.0.
|
||||
- PHP version requirement is increased to 7.2.5.
|
||||
- Use `install.lock` file to detect status of installation.
|
||||
- Load front end i18n text from `lang/front-end.yml` of a plugin automatically.
|
||||
- Upgraded AdminLTE to v3.
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
- 修改 GuzzleHttp 库获取 CA 证书的策略
|
||||
- 重构用户系统
|
||||
- PHP 版本最低要求为 7.2.0
|
||||
- PHP 版本最低要求为 7.2.5
|
||||
- 使用 `install.lock` 文件来检测安装状态
|
||||
- 插件系统:自动从 `lang/front-end.yml` 中加载前端多语言
|
||||
- AdminLTE 升级到 v3
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ Copy-Item -Path "../$zip" -Destination $zip
|
|||
|
||||
$manifest.latest = $current
|
||||
$manifest.url = $manifest.url.Replace($last, $current)
|
||||
$manifest.php = '7.2.0'
|
||||
$manifest.php = '7.2.5'
|
||||
ConvertTo-Json $manifest | Out-File -FilePath update_preview.json
|
||||
Write-Host "Update source is prepared." -ForegroundColor Green
|
||||
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ class UpdateControllerTest extends TestCase
|
|||
{
|
||||
return json_encode(array_merge([
|
||||
'spec' => 2,
|
||||
'php' => '7.2.0',
|
||||
'php' => '7.2.5',
|
||||
'latest' => $version,
|
||||
'url' => "https://whatever.test/$version/update.zip",
|
||||
], $extra));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user