查看: 772|回复: 0

php7.4报错Warning: Use of undefined constant userid - assumed 'userid'

[复制链接]

610

主题

413

回帖

77

日志

管理员

积分
5369
QQ
发表于 2024-5-18 15:35:16 | 显示全部楼层 |阅读模式
错误:Warning: Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP)
解决办法:解决此种问题也不难,只是报了”Warning警告“,只需要关闭”PHP错误提示“就行了。步骤如下:
1、打开 php.ini
2、设置 error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
3、设置 display_errors = Off


上士闻道,勤而行之;中士闻道,若存若亡;下士闻道,大笑之。不笑不足以为道!
回复 关闭延时

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册  

本版积分规则

快速回复 返回顶部 返回列表