Re: New destructors implementation
| From: | Andi Gutmans | Date: | Thu, 05 Feb 2004 06:12:29 +0000 |
| Subject: | Re: New destructors implementation | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7601@lists.php.net to get a copy of this message | ||
At 01:00 AM 2/5/2004 +0100, Marcus Boerger wrote:
If it's a PHP-style object, then you can use zend_objects_destroy_object as your destructor callback (when calling zend_objects_store_put()), in which case __destruct() will be called. That's how the regular PHP objects do it. So my guess is that for most internal objects we need to do so?Nope, I think most internal objects don't have destructors. This is only if the destructor is a PHP function not if it free's storage (which are most of the cases). So most internal objects will not have a destructor but will have a free storage function. Andi