Re: [PHP-DEV] References - good or bad

2002-08-17 Thread ira
Hi, I've read "PHP 4: Reference Counting and Aliasing" By Andi Gutmans on Zend.com site (http://www.zend.com/zend/art/ref-count.php). Also I read this mail http://marc.theaimsgroup.com/?l=php-dev&m=100955714924477 from him. I would like to know more about how reference is managed by PHP4. I'm

Re: [PHP-DEV] References - good or bad

2001-12-29 Thread Andi Gutmans
At 08:20 AM 12/29/2001 +0800, Alan Knowles wrote: >Andi Gutmans wrote: > >>As I mentioned on the ZE2 mailing list there general rule of thumb is: >>a) Objects should be passed by reference. >>b) Everything else including arrays should be used by value whenever >>possible semantically. >> >>In the

Re: [PHP-DEV] References - good or bad

2001-12-28 Thread Alan Knowles
Andi Gutmans wrote: > As I mentioned on the ZE2 mailing list there general rule of thumb is: > a) Objects should be passed by reference. > b) Everything else including arrays should be used by value whenever > possible semantically. > > In the ZE2 objects will join b). Is there a proposed sytna

Re: [PHP-DEV] References - good or bad

2001-12-28 Thread Andi Gutmans
As I mentioned on the ZE2 mailing list there general rule of thumb is: a) Objects should be passed by reference. b) Everything else including arrays should be used by value whenever possible semantically. In the ZE2 objects will join b). Basically what this means, as long as you're not changing

[PHP-DEV] References - good or bad

2001-12-28 Thread Brian Moon
Ok, there has been some discussion on the ZE2 list about returning references from functions and it has gotten me looking at references in general. Phorum deals with some pretty large arrays and so far that has made us faster than other BB's. I want to keep it that way. First, the question: Whe