87183
framework/base/helper.class.php 中的 import() 存在 BUG
回帖数 1
阅读数 1743
发表时间 2017-12-06 12:11:43
static public function import($file)
{
$file = realpath($file); // 需要增加此处理,否则会因为相对路径和绝对路径导致 redeclare class 错误
if(!is_file($file)) return false;
static $includedFiles = array();
if(!isset($includedFiles[$file]))
{
include $file;
$includedFiles[$file] = true;
return true;
}
return true;
}
{
$file = realpath($file); // 需要增加此处理,否则会因为相对路径和绝对路径导致 redeclare class 错误
if(!is_file($file)) return false;
static $includedFiles = array();
if(!isset($includedFiles[$file]))
{
include $file;
$includedFiles[$file] = true;
return true;
}
return true;
}
联系我们
联系人
杨苗/高级客户经理
电话(微信)
13165050229
QQ号码
2692096539
联系邮箱
yangmiao@chandao.com

相关帖子
鸿飞踏雁 | 最后回帖 2019-07-30 14:54 石洋洋
王胜杰 | 最后回帖 2019-08-13 17:17 张玉洁
Roby.Ruan | 最后回帖 2017-06-20 17:08 石洋洋
Qter | 最后回帖 2020-09-07 17:52 马超
Chrysalis | 最后回帖 2016-12-12 10:46 王春生
吕简荣 | 最后回帖 2018-10-17 16:10 石洋洋
石洋洋


精品资料包
1V1产品演示
免费试用增强功能
专属顾问答疑支持


