网页
资讯
视频
图片
知道
文库
贴吧
地图
采购
进入贴吧
全吧搜索
吧内搜索
搜贴
搜人
进吧
搜标签
广告
日
一
二
三
四
五
六
签到排名:今日本吧第
个签到,
本吧因你更精彩,明天继续来努力!
本吧签到人数:0
一键签到
可签
7
级以上的吧
50
个
一键签到
本月漏签
0
次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行
补签
。
连续签到:
天 累计签到:
天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
09月22日
漏签
0
天
discuz!吧
关注:
1,020
贴子:
877
看贴
图片
吧主推荐
游戏
5
回复贴,共
1
页
<返回discuz!吧
>0< 加载中...
discuz!论坛安装后出现这个错误,要怎么解决?
只看楼主
收藏
回复
世界为我震动
初级粉丝
1
该楼层疑似违规已被系统折叠
隐藏此楼
查看此楼
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /storage/sdcard0/htdocs/DiscuzX/upload/source/class/class_core.php on line 27
送TA礼物
1楼
2018-03-08 10:39
回复
天使号战舰
初级粉丝
1
该楼层疑似违规已被系统折叠
隐藏此楼
查看此楼
同求
IP属地:河南
3楼
2018-04-05 15:12
回复
收起回复
合肥起量快信息技术咨询
碗莲如何养护,叶子黄了干尖怎么办,干枯?做好这两步,让你的桂花枝繁叶茂绿油油接下来以我养了多年桂花的经验告诉你
2024-09-22 10:28
广告
立即查看
琥珀曌
初级粉丝
1
该楼层疑似违规已被系统折叠
隐藏此楼
查看此楼
PHP 7.2开始不主张使用function __autoload(){}来自动加载类文件。
__autoload() been DEPRECATED as of PHP 7.2.0. Relying on this feature is highly discouraged.
请使用spl_autoload_register($callable)来替代__autoload()自动加载函数。其中参数$callable是一个自定义函数。自定义函数的参数为需要加载的类。其他用法和使用__autoload()自动加载函数一样。
spl_autoload_register()可以注册多个自动加载函数,而使用自动加载函数__autoload()自动加载类时只能写一个__autoload()函数。
Discuz!使用传统的__autoload()来自动加载类文件,在PHP 7.2中运行需要改为spl_autoload_register()。
找到文件source\class\class_core.php,用文件编辑软件打开,搜索
if(function_exists('spl_autoload_register')) {
spl_autoload_register(array('core', 'autoload'));
} else {
function __autoload($class) {
return core::autoload($class);
}
}
复制代码
将else部分删除,代码变为
if(function_exists('spl_autoload_register')) {
spl_autoload_register(array('core', 'autoload'));
}
复制代码
其实这个if判断也是没有必要的,因为从PHP 5.1开始就已经支持spl_autoload_register()了。
IP属地:河南
4楼
2018-04-19 18:35
回复
收起回复
琥珀曌
初级粉丝
1
该楼层疑似违规已被系统折叠
隐藏此楼
查看此楼
PHP 7.2开始不主张使用function __autoload(){}来自动加载类文件。
__autoload() been DEPRECATED as of PHP 7.2.0. Relying on this feature is highly discouraged.
请使用spl_autoload_register($callable)来替代__autoload()自动加载函数。其中参数$callable是一个自定义函数。自定义函数的参数为需要加载的类。其他用法和使用__autoload()自动加载函数一样。
spl_autoload_register()可以注册多个自动加载函数,而使用自动加载函数__autoload()自动加载类时只能写一个__autoload()函数。
Discuz!使用传统的__autoload()来自动加载类文件,在PHP 7.2中运行需要改为spl_autoload_register()。
找到文件source\class\class_core.php,用文件编辑软件打开,搜索
if(function_exists('spl_autoload_register')) {
spl_autoload_register(array('core', 'autoload'));
} else {
function __autoload($class) {
return core::autoload($class);
}
}
复制代码
将else部分删除,代码变为
if(function_exists('spl_autoload_register')) {
spl_autoload_register(array('core', 'autoload'));
}
复制代码
其实这个if判断也是没有必要的,因为从PHP 5.1开始就已经支持spl_autoload_register()了。
IP属地:河南
5楼
2018-04-19 18:35
回复
收起回复
琥珀曌
初级粉丝
1
该楼层疑似违规已被系统折叠
隐藏此楼
查看此楼
PHP 7.2开始不主张使用function __autoload(){}来自动加载类文件。
__autoload() been DEPRECATED as of PHP 7.2.0. Relying on this feature is highly discouraged.
请使用spl_autoload_register($callable)来替代__autoload()自动加载函数。其中参数$callable是一个自定义函数。自定义函数的参数为需要加载的类。其他用法和使用__autoload()自动加载函数一样。
spl_autoload_register()可以注册多个自动加载函数,而使用自动加载函数__autoload()自动加载类时只能写一个__autoload()函数。
Discuz!使用传统的__autoload()来自动加载类文件,在PHP 7.2中运行需要改为spl_autoload_register()。
找到文件source\class\class_core.php,用文件编辑软件打开,搜索
if(function_exists('spl_autoload_register')) {
spl_autoload_register(array('core', 'autoload'));
} else {
function __autoload($class) {
return core::autoload($class);
}
}
复制代码
将else部分删除,代码变为
if(function_exists('spl_autoload_register')) {
spl_autoload_register(array('core', 'autoload'));
}
复制代码
其实这个if判断也是没有必要的,因为从PHP 5.1开始就已经支持spl_autoload_register()了。
IP属地:河南
6楼
2018-04-19 18:35
回复
收起回复
琥珀曌
初级粉丝
1
该楼层疑似违规已被系统折叠
隐藏此楼
查看此楼
PHP 7.2开始不主张使用function __autoload(){}来自动加载类文件。
__autoload() been DEPRECATED as of PHP 7.2.0. Relying on this feature is highly discouraged.
请使用spl_autoload_register($callable)来替代__autoload()自动加载函数。其中参数$callable是一个自定义函数。自定义函数的参数为需要加载的类。其他用法和使用__autoload()自动加载函数一样。
spl_autoload_register()可以注册多个自动加载函数,而使用自动加载函数__autoload()自动加载类时只能写一个__autoload()函数。
Discuz!使用传统的__autoload()来自动加载类文件,在PHP 7.2中运行需要改为spl_autoload_register()。
找到文件source\class\class_core.php,用文件编辑软件打开,搜索
if(function_exists('spl_autoload_register')) {
spl_autoload_register(array('core', 'autoload'));
} else {
function __autoload($class) {
return core::autoload($class);
}
}
复制代码
将else部分删除,代码变为
if(function_exists('spl_autoload_register')) {
spl_autoload_register(array('core', 'autoload'));
}
复制代码
其实这个if判断也是没有必要的,因为从PHP 5.1开始就已经支持spl_autoload_register()了。
IP属地:河南
7楼
2018-04-19 18:35
回复
收起回复
登录百度账号
扫二维码下载贴吧客户端
下载贴吧APP
看高清直播、视频!
贴吧热议榜
1
LOL官方发布全球战队战力排名
1511340
2
2024KPL年总大名单公布
1205095
3
游戏没有中配就要被骂吗?
1059492
4
苹果手机会爆炸吗?
872073
5
赵丽颖获飞天奖视后
767910
6
男生开谷子店救活老商场
539275
7
吧友锐评败犬女主剧情
530448
8
驻日美军违规驾驶撞死日本人
457654
9
《星鸣特攻》亏损比想象还大
374308
10
如何评价《如龙》真人剧预告
331317
贴吧页面意见反馈
违规贴吧举报反馈通道
贴吧违规信息处理公示