Since php5.3, more and more people have encountered prompts such as "assigning the return value of new by reference is deprecated in XXXX", especially in foreign products (such as WordPress and joolma ), the solution for many people is simple: Switch the PHP version back and the version will be OK. There is no doubt that this is a good way to look at this kind of problem. I think switching back to the old version of PHP is actually a shame for PHP Technology enthusiasts (Improper use of words, which roughly means this ). Solution: After php5.3 starts, the "= &" symbol in PHP is abolished. to copy the file, use = to reference it directly. The details are as follows:
1. PhP5 object replication adopts the reference method;
2. If the reference method is not used, add the keyword clone when copying the object;
3. If you want to change some attributes during the replication process, add function _ clone ();
Http://blog.csdn.net/shimch/article/details/630158
Http://www.liuhuadong.com/archives/904