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

相关帖子
周昌和 | 最后回帖 2021-03-18 08:53 王林
小马 | 最后回帖 2017-09-19 13:18 石洋洋
美利坚混泥土拌饭 | 最后回帖 2024-07-04 17:56 禅道-丁卓
lt | 最后回帖 2019-05-13 09:20 马超
王清鹤 | 最后回帖 2019-12-21 10:01 admii
dongs | 最后回帖 2016-06-29 12:15 石洋洋


石洋洋



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


