This commit is contained in:
Mr Chen
2024-10-06 14:13:46 +08:00
parent b9b5ecbac9
commit a678d28a12
3 changed files with 71 additions and 41 deletions
+2 -2
View File
@@ -5,8 +5,8 @@
"name": "php",
"title": "PHP",
"coexist": true,
"versions": ["53","54","55","56","70","71","72","73","74","80","81","82","83"],
"updates": ["5.3.29","5.4.45","5.6.36","7.0.30","7.1.33","7.2.32","7.3.20","7.4.30","8.0.30","8.1.24","8.2.11","8.3.0"],
"versions": ["53","54","55","56","70","71","72","73","74","80","81","82","83","84"],
"updates": ["5.3.29","5.4.45","5.6.36","7.0.30","7.1.33","7.2.32","7.3.20","7.4.30","8.0.30","8.1.29","8.2.24","8.3.12","8.4.0"],
"tip": "soft",
"install_pre_inspection":true,
"checks": "server/php/VERSION/bin/php",
+11 -10
View File
@@ -15,7 +15,7 @@ function version_le() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)"
function version_lt() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" != "$1"; }
function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"; }
version=8.4
version=8.4.0RC1
PHP_VER=84
Install_php()
{
@@ -37,18 +37,19 @@ if [ ! -d $sourcePath/php/php${PHP_VER} ];then
if [ ! -f $sourcePath/php/php-${version}.tar.xz ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://www.php.net/distributions/php-${version}.tar.xz
# wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://www.php.net/distributions/php-${version}.tar.xz
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.xz https://downloads.php.net/~saki/php-${PHP_VER}.tar.xz
fi
#检测文件是否损坏.
md5_file_ok=xxx
if [ -f $sourcePath/php/php-${version}.tar.xz ];then
md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'`
if [ "${md5_file}" != "${md5_file_ok}" ]; then
echo "PHP${version} 下载文件不完整,重新安装"
rm -rf $sourcePath/php/php-${version}.tar.xz
fi
fi
# md5_file_ok=xxx
# if [ -f $sourcePath/php/php-${version}.tar.xz ];then
# md5_file=`sha256sum $sourcePath/php/php-${version}.tar.xz | awk '{print $1}'`
# if [ "${md5_file}" != "${md5_file_ok}" ]; then
# echo "PHP${version} 下载文件不完整,重新安装"
# rm -rf $sourcePath/php/php-${version}.tar.xz
# fi
# fi
cd $sourcePath/php && tar -Jxf $sourcePath/php/php-${version}.tar.xz
mv $sourcePath/php/php-${version} $sourcePath/php/php${PHP_VER}
+58 -29
View File
@@ -58,7 +58,8 @@
"74",
"80",
"81",
"82"
"82",
"83"
],
"type": "脚本解密",
"msg": "用于解密ionCube Encoder加密脚本!",
@@ -76,7 +77,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "加密库",
"msg": "Sodium加密库的包装器",
@@ -94,7 +96,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "运算库",
"msg": "一个开源的数学运算库",
@@ -116,7 +119,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "缓存器",
"msg": "用于加速PHP脚本!",
@@ -138,7 +142,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "SSL!",
@@ -155,7 +160,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "加密软件!",
@@ -177,7 +183,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "高精度计算!",
@@ -200,7 +207,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "缓存器",
"msg": "用于信号控制!",
@@ -223,7 +231,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "编码转换!",
@@ -244,7 +253,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "用于FILE!",
@@ -264,7 +274,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "提供到libevent库的接口",
@@ -285,7 +296,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "用于图像文件格式!",
@@ -303,7 +315,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "序列化扩展!",
@@ -326,7 +339,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "国际化与本地化!",
@@ -349,7 +363,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "通用GD库!",
@@ -372,7 +387,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "提供国际化支持",
@@ -417,7 +433,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "缓存器",
"msg": "强大的内容缓存器,支持集群",
@@ -440,7 +457,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "缓存器",
"msg": "更强大的内容缓存器,支持集群",
@@ -488,7 +506,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "比GD更强大的图形库",
@@ -510,7 +529,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "调试器",
"msg": "不多说,不了解的不要安装",
@@ -533,7 +553,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "性能分析",
"msg": "不多说,不了解的不要安装!",
@@ -555,7 +576,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "异步、并行、高性能网络通信引擎",
@@ -601,7 +623,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "框架",
"msg": "Yaf是一个C语言编写的PHP框架",
@@ -618,7 +641,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "YAML-1.1解析器和发射器",
@@ -651,7 +675,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "通用扩展",
"msg": "Mongodb数据库连接驱动",
@@ -669,7 +694,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "缓存器",
"msg": "高性能无锁共享内存Cache",
@@ -691,7 +717,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "大数据",
"msg": "SOLR全文搜索服务",
@@ -713,7 +740,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "日志",
"msg": "SeasLog高性能日志记录",
@@ -738,7 +766,8 @@
"80",
"81",
"82",
"83"
"83",
"84"
],
"type": "压缩",
"msg": "压缩组件",