新安装ECShop后,打开网站时出现了Strict Standards: Non-static method cls_image::gd_version() should not be called statically in H:wwwrootshop.fewho.comincludeslib_base.php on line 346,如何去掉这个错误?
新PHP版本::的使用只能是静态static方法。
因此,我们只要将该文件的346行改成以下两行就可以了:
$cls_image = new cls_image(); return $cls_image->gd_version();