huaxing211 发表于 2020-8-13 01:09:01

php7.4下无法安装ioncube

php7.4,安装ioncube时提示:Do not support current PHP version or PHP error!
查看ioncube.sh:
    if echo "${Cur_PHP_Version}" | grep -Eqi '^5.2.'; then
       zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.2.so"
    elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.3.'; then
       zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.3.so"
    elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.4.'; then
       zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.4.so"
    elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.5.'; then
       zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.5.so"
    elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.6.'; then
       zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.6.so"
    elif echo "${Cur_PHP_Version}" | grep -Eqi '^7.0.'; then
       zend_ext="/usr/local/ioncube/ioncube_loader_lin_7.0.so"
    elif echo "${Cur_PHP_Version}" | grep -Eqi '^7.1.'; then
       zend_ext="/usr/local/ioncube/ioncube_loader_lin_7.1.so"
    elif echo "${Cur_PHP_Version}" | grep -Eqi '^7.2.'; then
       zend_ext="/usr/local/ioncube/ioncube_loader_lin_7.2.so"
    elif echo "${Cur_PHP_Version}" | grep -Eqi '^7.3.'; then
       zend_ext="/usr/local/ioncube/ioncube_loader_lin_7.3.so"
    else
      Echo_Red "Do not support current PHP version or PHP error!"
      exit 1
    fi

没有php7.4版本的判断,可以直接增加一个判断么:
    elif echo "${Cur_PHP_Version}" | grep -Eqi '^7.4.'; then
       zend_ext="/usr/local/ioncube/ioncube_loader_lin_7.4.so"

licess 发表于 2020-8-13 08:46:16

1.7发布时ioncuber loader的php 7.4还没发布,所以里面没有,随便改一个都改成7.4就行了,最近我就添加上
页: [1]
查看完整版本: php7.4下无法安装ioncube