That's because of an internal small-scale garbage collection mechanism in
Zend. Objects may not be freed as soon as they're no longer linked, but
may be freed shortly afterwards.
Zeev
At 01:16 3/5/2001, Harald Radi wrote:
>when i register a destructor with zend_register_list_destructors_ex(), why
>is the registered function only called at the end of the script and never
>during processing when i do something like unset($my_obj); or $my_obj=null;.
>isn't it supposed to be called during execution ?
>
>harald
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Zeev Suraski <[EMAIL PROTECTED]>
CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]