pppscn 发表于 2017-2-12 17:54:45

./addons.sh install ionCube

./addons.sh install ionCubeWriting ionCube Loader to configure files...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm Failed loading /usr/local/ioncube/ioncube_loader_lin_7.0.so:/usr/local/ioncube/ioncube_loader_lin_7.0.so: undefined symbol: executor_globals
done




目前没有判断是否为ts模式,建议增加判断
    Get_PHP_Ext_Dir
    if echo "${zend_ext_dir}" | grep -Eqi 'no-debug-zts'; then
      if echo "${Cur_PHP_Version}" | grep -Eqi '^5.2.'; then
         zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.2_ts.so"
      elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.3.'; then
         zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.3_ts.so"
      elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.4.'; then
         zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.4_ts.so"
      elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.5.'; then
         zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.5_ts.so"
      elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.6.'; then
         zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.6_ts.so"
      elif echo "${Cur_PHP_Version}" | grep -Eqi '^7.0.'; then
         zend_ext="/usr/local/ioncube/ioncube_loader_lin_7.0_ts.so"
      else
            Echo_Red "Do not support current PHP version or PHP error!"
            exit 1
      fi
    else
      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"
      else
            Echo_Red "Do not support current PHP version or PHP error!"
            exit 1
      fi
    fi

licess 发表于 2017-2-12 19:11:56

:handshake
页: [1]
查看完整版本: ./addons.sh install ionCube