Bug #15254 Updated: modules are unloaded in the wrong order
| From: | hholzgra@php.net | Date: | Mon, 28 Jan 2002 13:35:40 +0000 |
| Subject: | Bug #15254 Updated: modules are unloaded in the wrong order | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-78298@lists.php.net to get a copy of this message | ||
ID: 15254
Updated by: hholzgra
Reported By: stephensb@aciworldwide.com
Status: Open
Bug Type: Reproducible crash
Operating System: Linux, Solaris and win32
PHP Version: 4.1.1
New Comment:
i remember doing something about that somewhere
around 4.0.5, too, but i can't remember the outcome :(
Previous Comments:
------------------------------------------------------------------------
[2002-01-28 08:14:22] stephensb@aciworldwide.com
zend_hash_destroy destroys things in order. Thus, if one has
two loadable modules, one of which depends on the other by
calling a function in the initialization or finalization functions,
then bad things will happen whichever order they appear in php.ini,
since whichever way around they're listed,
a function will be called after the providing library has been
unloaded.
Our fix is simply to change zend_hash_destroy to traverse its list
backwards (from ht->pListTail rather than ht->pListHead).
(I believe we (probably as MessagingDirect) reported this bug in PHP3
and it was fixed then, but it seems to have reappeared.)
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=15254&edit=1