A5下载 - 努力做内容最丰富最安全的下载站!

A5站长下载站

当前位置:A5下载 > 源码技巧 > Ecshop > Strict standards: Non-static method cls_image::gd_version() should not be called

Strict standards: Non-static method cls_image::gd_version() should not be called

时间:2015-05-28 14:12作者:sa人气:94

Strict standards: Non-static method cls_image::gd_version() should not be called statically in E:SiteAllbcty365.comwwwincludeslib_base.php on line346

这个错误的的处理是修改文件:E:SiteAllZBPHP.COMwwwincludescls_image.php 第693行,把

“function gd_version()” 改成“static function gd_version()” 即可。

Strict standards: Only variables should be passed by reference in E:SiteAllbcty365.comwwwincludeslib_main.php on line 1360

发现最新版本的PHP(PHP/5.4.16),有很多兼容问题,总是有报错。其实原因是最新版的更严格。

发现有几个地方:

1)类的静态方法,前面必须有static修饰。不能直接写public function fName(),前面必须加上static,否则报错

2)类的继承extends,子类的方法,如果父类也有,那么必须参数一致,否则也会报错。Strict standards: Declaration of UrlPath::Goods() should be compatible with UrlBase::Goods($rs, $param = Array) in

补充:Strict standards: Only variables should be passed by reference in E:SiteAllbcty365.COMwwwincludescls_template.php on line 418

将 $tag_sel = array_shift(explode(' ', $tag)); 修改为

<span style="font-size:18px;"> $tag_sel = explode(' ', $tag);

$tag_sel = array_shift($tag_sel);</span>

 

标签Strict,standards,Non-static,me

相关下载

查看所有评论+

网友评论

网友
您的评论需要经过审核才能显示

公众号