About PHP5.3 Access Ecshop System _ Phone Version error problem
Today, we use mobile phones to access the company's mall system
This error has occurred: Deprecated:assigning the return value of new by reference is Deprecated
Error Causes and solutions:
Since php5.3, more and more people will encounter "assigning the return value of the new by reference are deprecated in XXXX" such hints, especially in foreign products (such as WordPress, Joolm A), a lot of people's solution is simple: replace the PHP version on the version is OK. There is no doubt that this is a good idea, and the superficial understanding of this kind of problem may make people see something. I think it's a shame for PHP technology enthusiasts to switch back to the old version of PHP (this is roughly what it means). workaround: After php5.3 started, the "=&" symbol in PHP was abolished, so if you want to copy it, simply use = reference.
Details are as follows:
1, PHP5 object copy is used in the way of reference;
2, if you do not use the reference method, you need to copy the object when the keyword clone;
3, if in the process of copying, at the same time to change some properties, then increase the function _clone ();
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.