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

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация