如何调试这段PHP代码?
将PHP版本从5.3更改为5.5后,我在PHP脚本中遇到一个错误。代码如下所示:如何调试这段PHP代码?,php,debugging,Php,Debugging,将PHP版本从5.3更改为5.5后,我在PHP脚本中遇到一个错误。代码如下所示: <?php //003c3 if(!extension_loaded('ionCube Loader')){ $__oc=strtolower(substr(php_uname(),0,3)); $__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so'); @dl($
<?php //003c3
if(!extension_loaded('ionCube Loader')){
$__oc=strtolower(substr(php_uname(),0,3));
$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');
@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;}}}@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 site administrator.');
exit(199);
?>
4+oV594EY3tjgN0odFKT7b+obVYffEG8RdNnCO7CoGLb4NV4MfbokDwgKPKvV7xT71apE7Q3bEN/
lOCV4A/BL+3uuRIgCoD/iTvsrlUhVWpGmj9c6Bs6RLuL0DuwMHHSGvbnPtcMOvTw8kpEHxQ5+tlw...
有没有一种方法可以在真实的代码中实现这一点
谢谢 dl()
从5.3开始默认禁用:
如php文档中所述:
正如这里所建议的,请改用扩展加载指令:
错误是?????您应该以更可读的格式列出代码。。。就像使用回车一样。我更新了我的帖子,这就是它在我的PHP文件中出现的代码。错误是obvous。您可能应该联系ionCube以获得支持,因为脚本已经使用他们的产品进行了加密。
Call to undefined function dl()