首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将用ioncube4编写的脚本更新到ioncube 5.5.19

如何将用ioncube4编写的脚本更新到ioncube 5.5.19
EN

Stack Overflow用户
提问于 2015-01-10 13:53:43
回答 1查看 1.4K关注 0票数 0

我有一个脚本给在下面的ioncube4编码,这不是运行在电离立方体5.5.19和下面的错误。

致命错误:文件/home3/teaonclick/public_html/hahi.in/wp-content/themes/FlatZon/includes/pixr-amazon.php是由PHP4的ionCube编码器编码的,不能在PHP5.5下运行。请要求脚本提供商提供一个使用PHP5.3或PHP5.4或PHP5.5的ionCube编码器编码的版本。在第0行的未知中

如何更新脚本以使用ioncube 5.5.19?我的网站在linux OS上的共享托管服务提供商中运行

PHP版本5.5.19 MySQL版本5.5.35-cll

显示问题的文件内容如下所示。

代码语言:javascript
复制
<?php //0046b
if(!extension_loaded('ionCube Loader'))
{
    $__oc=strtolower(substr(php_uname(),0,3));
    $__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');
    if(function_exists('dl'))
    {
        @dl($__ln);
    }
    if(function_exists('_il_exec'))
    {
        return _il_exec();
    }
    $__ln='/ioncube/'.$__ln;
    $__oid=$__id=realpath(ini_get('extension_dir'));
    $__here=dirname(__FILE__);
    if(strlen($__id)>1&&$__id[1]==':')
    {
        $__id=str_replace('\\','/',substr($__id,2));
        $__here=str_replace('\\','/',substr($__here,2));
    }
    $__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';
    $__i=strlen($__rd);
    while($__i--)
    {
        if($__rd[$__i]=='/')
        {
            $__lp=substr($__rd,0,$__i).$__ln;
            if(file_exists($__oid.$__lp))
            {
                $__ln=$__lp;
                break;
            }
        }
    }
    if(function_exists('dl'))
    {
        @dl($__ln);
    }
}
else
{
    die('The file '.__FILE__." is corrupted.\n");
}
if(function_exists('_il_exec'))
{
    return _il_exec();
}
echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');
exit(199);

?>
HR+cPys/ztCE+Cj4mwPYK311udCFJfWF/McNVEDiA5pwzY1QSOjWWm4Rn1HE0AjyMFyv4qsiACbP

等等。

EN

回答 1

Stack Overflow用户

发布于 2015-01-11 22:48:56

之所以会出现这个消息,是因为PHP的内部结构与PHP5.5是如此的不同,以至于在PHP5.5上运行为PHP4编译的脚本时,不可能具有完全的兼容性。因此这是不受支持的。

如果脚本的原始提供者提供了为PHP5构建的版本(但最好是为5.4或5.5构建),那么您可以在PHP5.5或5.6上运行它。或者,使用PHP5.4来运行旧代码。披露:我与ionCube有关联。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27873319

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档