Strict standards: Non-static method cls_image::gd_version() should not be called statically in E:SiteAllzbphp.comwwwincludeslib_base.php on line346
The solution to this error is to modify the file: E:SiteAllZBPHP.COMwwwincludescls_image.php line 693, replace
Change "function gd_version()" to "static function gd_version()".
I found that the latest version of PHP (PHP/5.4.16) has many compatibility issues and errors are always reported. In fact, the reason is that the latest version is more strict.
I found several places:
1) The static method of the class must be preceded by static modification. Public function fName() cannot be written directly, static must be added in front, otherwise an error will be reported
2) Class inheritance extends, and the methods of subclasses, if the parent class also has them, must have the same parameters, otherwise an error will be reported. Strict standards: Declaration of UrlPath::Goods() should be compatible with UrlBase::Goods($rs, $param = Array) in
Added: Strict standards: Only variables should be passed by reference in E:SiteAllZBPHP.COMwwwincludescls_template.php on line 418
Change $tag_sel = array_shift(explode(' ', $tag)); to
<span style="font-size:18px;"> $tag_sel = explode(' ', $tag);
$tag_sel = array_shift($tag_sel);</span>
http://www.bkjia.com/PHPjc/477146.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477146.htmlTechArticleStrict standards: Non-static method cls_image::gd_version() should not be called statically in E:SiteAllzbphp.comwwwincludeslib_base .php on line346 The solution to this error is to fix...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn