RE: [PHP4BETA] Re: [PHP3] Re: [PHP4BETA] Re: [PHP3] OO
| From: | Samuel Liddicott | Date: | Tue, 10 Aug 1999 13:54:45 +0000 |
| Subject: | RE: [PHP4BETA] Re: [PHP3] Re: [PHP4BETA] Re: [PHP3] OO | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3279@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Zeev Suraski [mailto:zeev@zend.com]
> Sent: 05 August 1999 06:20 AM
> To: Manuel Lemos
> Cc: php3@lists.php.net; sander@3dnews.net; php4beta@lists.php.net
> Subject: [PHP4BETA] Re: [PHP3] Re: [PHP4BETA] Re: [PHP3] OO
>
> Not really. The problem doesn't occur when you have multiple variables
> pointing at the same zval (pval) value - in that case, we can easily rely
> on Zend's reference counting to call the destructor only when the last
> reference is deleted. The problem occurs when there are actually
> multiple
> zval's that contain the data of the same object (they contain the class
> type and the properties - but changing one will not change the
> other, and,
> they don't have their resources doubled - they point at the same
> resources
> (e.g. file handles)).
How could this occur?
Sam