叶子网络bbs论坛

标题: cls_image::gd_version() [打印本页]

作者: rain    时间: 2015-12-11 14:17
标题: cls_image::gd_version()

Strict Standards: Non-static method cls_image::gd_version() should not be called statically in E:\web\shopex\includes\lib_base.php on line 346

PHP 5.3版本以上会出现这个错误。

在346行里面,发现gd_version()方法未声明静态static,所以会出错:

return cls_image::gd_version();

改成:

$p = new cls_image();
return $p->gd_version();







欢迎光临 叶子网络bbs论坛 (https://fob0.com/) Powered by Discuz! X3.3