在马vBulletin迁移至PHP7中遇到
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_Datastore has a deprecated constructor in /var/www/htdocs/vbbbs/includes/class_core.php on line 1128
经查PHP7 不再支持与类名相同的构造方法,构造方法统一使用 __construct(), 比如下面的写法 PHP7 就会报这个错误。
也就是如果在代码中
class vB_Database
...
...
function vB_Database
将不被建议,所以,需要将第二个vB_Database改为
function __contruct()
即可。