RE: PHP 4 to PHP 5 Migration shortcut

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux