87183
framework/base/helper.class.php 中的 import() 存在 BUG
回帖数 1
阅读数 1543
发表时间 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;
}
联系我们
联系人
刘斌/高级客户经理
电话(微信)
17685869372
QQ号码
526288068
联系邮箱
liubin@chandao.com

相关帖子
Hans | 最后回帖 2018-09-05 11:14 禅道-李锡碧
light | 最后回帖 2023-05-12 11:01 禅道-阿龙
吕简荣 | 最后回帖 2018-10-17 16:10 石洋洋
山高水长 | 最后回帖 2021-06-30 10:16 张玉洁
任敏 | 最后回帖 2019-07-15 13:13 石洋洋
小马 | 最后回帖 2017-09-19 13:18 石洋洋
石洋洋

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


