87183
framework/base/helper.class.php 中的 import() 存在 BUG
回帖数 1
阅读数 1904
发表时间 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

相关帖子
Chrysalis | 最后回帖 2016-12-12 10:46 王春生
macro | 最后回帖 2019-01-02 16:16 王林
没有 | 最后回帖 2015-12-25 17:19 王春生
¥∞¥ | 最后回帖 2023-06-14 14:50 马超
胜果科技-郭辉 | 最后回帖 2024-07-29 17:54 孔令茂
李露露 | 最后回帖 2019-11-29 15:27 禅道-李锡碧
石洋洋


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


