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

相关帖子
凡凡 | 最后回帖 2018-03-09 17:33 石洋洋
爱听歌的圣诞树 | 最后回帖 2017-09-04 10:51 石洋洋
不要命的火锅 | 最后回帖 2024-09-10 08:41 马超
李先生 | 最后回帖 2024-10-19 22:21 William
叶志旺 | 最后回帖 2016-02-16 08:57 石洋洋
石红霞 | 最后回帖 2019-03-11 16:29 禅道-李锡碧
石洋洋


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


