Re: Re: [PATCH] Automatic module globals management
| From: | Stanislav Malyshev | Date: | Fri, 09 Jun 2006 18:20:45 +0000 |
| Subject: | Re: Re: [PATCH] Automatic module globals management | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-24050@lists.php.net to get a copy of this message | ||
SF>>How is it going to be dependent in any way on a module that was loaded
SF>>after it was?!
As far as understand the code, table_size - zend_dl_module_count() formula
starts with last allocated ID and deallocates one ID per module unloaded,
starting from the latest loaded module. However, if there are N modules
that do not allocate IDs, it will deallocate N IDs for modules that have
allocated IDs. BTW, I see no reason why this expression can't go even
negative with present code, given enough non-allocating modules.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115