[PHP-DEV] Variable Reference Counters

2002-09-06 Thread Tom Oram
Hi, In the Zend Engine I assume each (referenced) variable has some sort of reference counter so that when the last reference is lost the memory is freed up, am I right? If I am has anyone ever suggested or are there any plans to make this available to the php scripts, this goes for the object

Re: [PHP-DEV] Variable Reference Counters

2002-09-06 Thread Marcus Börger
At 11:43 06.09.2002, Tom Oram wrote: Hi, In the Zend Engine I assume each (referenced) variable has some sort of reference counter so that when the last reference is lost the memory is freed up, am I right? If I am has anyone ever suggested or are there any plans to make this available to the

Re: [PHP-DEV] Variable Reference Counters

2002-09-06 Thread Marcus Börger
The function get_reference_count() could be helpful with garbage collection. For example most people using Java do not know when the garbage collection fails like collections, double linked lists and such. I guess your point was to addresses exactly this circumstance. If so that function would