Strict standards: Non-static method cls_image: gd_version ()

Source: Internet
Author: User

Strict standards: Non-static method cls_image: gd_version () shocould not be called statically in E: \ SiteAll \ zbphp.com \ www \ mongodes \ lib_base.php on line346 the error is handled by modifying the file: E: \ SiteAll \ ZBPHP. COM \ www \ shortdes \ cls_image.php line 693rd, change "function gd_version ()" to "static function gd_version. The latest version of PHP (PHP/5.4.16) is found to have many compatibility problems and errors are always reported. The reason is that the latest version is stricter. It is found that there are several points: 1) the static method of the class must have static modification before. Public function fName () cannot be written directly, so static must be added before; otherwise, an error is reported. 2) the class inherits the extends and subclass methods. If the parent class also exists, the parameters must be consistent, otherwise, an error is reported. Strict standards: Declaration of UrlPath: Goods () shocould be compatible with UrlBase: Goods ($ rs, $ param = Array) in Supplement: Strict standards: only variables shoshould be passed by reference in E: \ SiteAll \ ZBPHP. COM \ www \ shortdes \ cls_template.php on line 418 change $ tag_sel = array_shift (explode ('', $ tag)

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

 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.