Posted by Rob Agar on 09/30/11 11:13
> From: Rasmus Lerdorf
> Chances are pretty good that you won't have to change
> anything. Step 1
> would be to simply try running your existing code under PHP5 and see
> what breaks. Unless you have complicated OO code or you are
> using the
> domxml extension, you likely won't need to change anything.
FWIW, in my experience the thing most likely to trip you up is this:
$a = new C();
$b = $a;
....in php4 $b is a copy of $a, but in php5 it's a reference to the same
object. You can use clone() to get the same result.
hth
Rob
[Back to original message]
|