PHP Alarm: Strict standards:only variables should be passed by reference in

Source: Internet
Author: User

Cause of error

Because of the reason for the end function.

End Function: Mixed end (Array & $array)

You can see that the argument to end is a reference (reference), and you can only pass a reference to a variable as a parameter to the function, and you simply pass the explode ('. ', $name) as a parameter to the End function, so that's the hint.

You can modify this by defining a variable and passing the variable to the End function

Solution: Open includes/lib_main.php and change the code to code two to resolve the error.

Code One

1 function get_dyna_libs ($theme$tmp)2{3     $ ExtEnd(explode$tmp));

Code two

1 function get_dyna_libs ($theme$tmp)2{3     $ Extvarexplode$tmp); 4     $ext End ($extvar); 5     $tmp basename ($tmp, ". $ext");

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.