> 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
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php