Migrating from PHP 4 to PHP 5 Intl. PHP Conference May 5, 2004. Amsterdam, the Netherlands Derick Rethans http://pres.derickrethans.nl/migrating-ffm

Slide 1/21

o o

Objectmodel in PHP 4

Pass by value Use of references needed almost everywhere... at call time, and even during instantiation.

-2-

May 16 2004

Slide 2/21

o o

Objectmodel in PHP 5

Pass by reference Objects are referenced by a handle.

-3-

May 16 2004

Slide 3/21

Clone

The PHP 5 Way