在马vBulletin迁移至PHP7中遇到php
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 1128it
经查PHP7 再也不支持与类名相同的构造方法,构造方法统一使用 __construct(), 好比下面的写法 PHP7 就会报这个错误。io
也就是若是在代码中ast
class vB_Databasefunction
...class
...方法
function vB_Databasetab
将不被建议,因此,须要将第二个vB_Database改成co
function __contruct()constructor
便可。