ECshop Strict standards:only variables should be passed by reference in solution

Source: Internet
Author: User

In this article, I would like to introduce you to the Ecshop Strict standards:only variables should is passed by the reference in the solution, I hope this tutorial is helpful to your classmates.

Error message

Strict standards:only variables should be passed by reference in d:/wamp/ecshop/includes/cls_template.php on line 406

Open 406 lines with the software is this sentence $tag _sel = Array_shift ("Explode (", $tag));

Workaround

More than 5.3 versions of the issue should also be related to configuration

As long as 406 lines break this sentence into two sentences, there's no problem.

The code is as follows Copy Code

$tag _sel = Array_shift (Explode (", $tag));

Change to:

$tag _arr = Explode (", $tag);
$tag _sel = Array_shift ($tag _arr);

Because the arguments of Array_shift are passed by reference, more than 5.3 by default can only pass specific variables, but not through function return values

Or if it is configured like this:

error_reporting = E_all | E_strict

ECshop Strict standards:only variables should be passed by reference in solution

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.