所在位置:首页 → 异常解决 → 搭建网站时报错:Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

搭建网站时报错:Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

发布: 更新时间:2022-10-25 13:04:10

问题背景

今天在安装ecshop程序时,报错Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

问题分析

翻译这个报错的意思如下:弃用:在PHP的未来版本中,与其类同名的方法将不再是构造函数

因此我们知道这个是PHP的版本太高了,程序开发所使用的php方法在新版本中没法正常使用。因此我们可以选择使用低版本的php。这里我原来是php7.4的,然后我们更换为Php5.6毕竟这个版本比较经典,哈哈

问题解决

标签:,
文章排行