# About bug #26753 and zend_register_list_destructors()

- Thread: https://externals.io/message/7849
- Original archive: https://news-web.php.net/php.internals/7849
- Started by Jani Taskinen on 2004-02-15T21:18:04+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #7849 — Jani Taskinen — 2004-02-15T21:18:04+00:00

URL: https://externals.io/message/7849#7849

This is either bug in zend_fetch_list_dtor_id() as said in the 
    bug report or misuse of [zend_]register_list_destructors().
    
    So which one is it? Is zend_register_list_destructors() deprecated in
    favor of zend_register_list_destructors_ex() or what?? 

    FYI: register_list_destructors() is only used by ext/mssql in HEAD.
    It's also used by ext/crack in PHP_4_3. But not anywhere else.
    
    What's the difference between these two functions anyway??
    (some comments in the sources would be so nice sometimes :)
    
    --Jani

---

## #7867 — Andi Gutmans — 2004-02-16T08:18:07+00:00

URL: https://externals.io/message/7849#7867 · In reply to: #7849

It seems to me that the difference is in the dtor() callback's parameters.
I'm not sure why type_name is not passed to 
zend_register_list_destructors(). It probably did not exist when it was 
originally written.
I guess we can either fix the comparison, change 
zend_register_list_destructors() to accept type_name, or nuke 
zend_register_list_destructors() completely and move to _ex().
Probably the last is the best option if we only have to fix two extensions.

Andi

At 11:18 PM 2/15/2004 +0200, Jani Taskinen wrote:

>     This is either bug in zend_fetch_list_dtor_id() as said in the
>     bug report or misuse of [zend_]register_list_destructors().
>
>     So which one is it? Is zend_register_list_destructors() deprecated in
>     favor of zend_register_list_destructors_ex() or what??
>
>     FYI: register_list_destructors() is only used by ext/mssql in HEAD.
>     It's also used by ext/crack in PHP_4_3. But not anywhere else.
>
>     What's the difference between these two functions anyway??
>     (some comments in the sources would be so nice sometimes :)
>
>     --Jani
