I got stuck by moving my old php4 website to a new server of my company that only supports php5. In php4, objects were copied by value, and in php5 - by reference. Unfortunately, for me, the person who wrote this site made objects for others on the left and right, and now it causes all kinds of problems. Is there a setup or something that I can change to make php5 copy by value? If not, can I:
A) start creating copy constructors for each object B) find and replace on each "obj1 = obj2" and make it "obj1 = clone obj2" C) do something else?
Thanks!
Jr
source
share