Re: [PHP4BETA] quick API question re refcounts in c-modules.

From: Date: Thu, 09 Dec 1999 20:33:19 +0000
Subject: Re: [PHP4BETA] quick API question re refcounts in c-modules.
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7737@lists.php.net to get a copy of this message
At 22:23 09/12/1999 , Thies C. Arntzen wrote:
this is by no way really important, but i'd like to understand how we want to handle recursive refs like this ($this->parser is a resource keeping a ref of $this).
I haven't really read your entire letter, I just glanced through this, so there's a (small?) chance that I got it wrong. But as soon as I read the above sentence, the simple answer that came to mind is that you simply can't. The reference mechanism in PHP 4.0 wasn't designed for building fancy data structures such as recursive lists, and its behavior does prevent you from doing that sort of stuff (that is, it's not that it is unstable, it's just that its designed behavior doesn't fit the purposes of recursive data structures). Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.version4 (#7737) next »