RE: [PHP] PHP 4 to PHP 5 Migration shortcut

From: Date: Thu, 14 Apr 2005 07:06:51 +0000
Subject: RE: [PHP] PHP 4 to PHP 5 Migration shortcut
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-213053@lists.php.net to get a copy of this message
> 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

« previous php.general (#213053) next »