Re: [PHP-DEV] Referrences

2002-06-03 Thread Michael Stolovitzsky
Markus Fischer wrote: > On Mon, Jun 03, 2002 at 10:29:19AM +0300, Michael Stolovitzsky wrote : >> If I understand correctly, given $bar is an object >> >> $foo = $bar >> >> will copy entire contents of $bar into foo. Following question: what >> happens with $foo = new Foo? Does the object get c

Re: [PHP-DEV] Referrences

2002-06-03 Thread Markus Fischer
On Mon, Jun 03, 2002 at 10:29:19AM +0300, Michael Stolovitzsky wrote : > If I understand correctly, given $bar is an object > > $foo = $bar > > will copy entire contents of $bar into foo. Following question: what happens > with $foo = new Foo? Does the object get created, copied into $foo and

[PHP-DEV] Referrences

2002-06-03 Thread Michael Stolovitzsky
If I understand correctly, given $bar is an object $foo = $bar will copy entire contents of $bar into foo. Following question: what happens with $foo = new Foo? Does the object get created, copied into $foo and then destroyed, while the copy in $foo lives? In other words, is there a perform