I got stuck moving an old website written in php4 to my company's new server that only supports php5. In php4, objects were copied by value, but in php5 it's by reference. Unfortunately for me, the person originally who wrote this site was making objects from others left and right, and now it's causing all sorts of problems. Is there a setting or something that I can change to make php5 copy by value? If not, can I:
A) start writting copy constructors for each object B) do find and replace on every "obj1 = obj2" and make it "obj1 = clone obj2" C) do something else?
Thanks!