To be more precise - passed by handle. Andrey
----- Original Message ----- From: "Leon Atkinson" <[EMAIL PROTECTED]> To: "John Wells" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 07, 2003 6:31 AM Subject: Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind... > > Any good links you could throw my way describing proposed changes? > > There are archives of the Zend Engine 2 list at zend.com: > http://www.zend.com/lists.php > > There is one big change with objects that will break BC. Objects pass by > reference instead of value, both for function calls and assignments. For > example: > > <? > class a {} > > function c($c) > { > $c->name = 'C'; > } > > $a = new a; > $b = $a; > > $a->name = "A"; > print($a->name); > $b->name = "B"; > print($a->name); > c($a); > print($a->name); > ?> > > In ZE1 you get "AAA". In ZE2 you get "ABC". > > Leon > > --- > Leon Atkinson <http://www.leonatkinson.com/> > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php