陆零云
36
0
现象
在宝塔里把站点 PHP 从 7.4 切到 8.0,刷新整站白屏,浏览器状态码 200 但页面内容为空,Nginx 访问日志看起来正常,PHP 错误日志里出现 Uncaught Error: Call to undefined function each(),后台同样进不去。
原因
PHP 8 移除了一批函数与语法,each、create_function、带花括号的字符串下标都会直接触发致命错误;扩展没有在新版本里装齐,fileinfo、gd、mys...
陆零云
36
0
现象
服务器把 PHP 从 8.1 升到 8.3 后,FPM 启动日志出现 PHP Warning: PHP Startup: redis: Unable to initialize module,Module compiled with module API=20220829, PHP compiled with module API=20230831。php -m 里没有 redis,业务连接缓存时直接报 Class "Redis" not found...