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

相关帖子
Leo | 最后回帖 2021-06-30 10:03 张玉洁
李露露 | 最后回帖 2019-11-29 15:27 禅道-李锡碧
李大善人李大恶人 | 最后回帖 2019-02-11 18:06 qq_5c60f1a2ecb96
美利坚混泥土拌饭 | 最后回帖 2024-07-04 17:56 禅道-丁卓
蒋莹凯 | 最后回帖 2019-03-22 18:16 禅道-李锡碧
李军 | 最后回帖 2024-02-23 16:11 禅道-阿龙
石洋洋


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


