Re: Re: [PATCH] Automatic module globals management
| From: | Steph Fox | Date: | Tue, 13 Jun 2006 15:44:21 +0000 |
| Subject: | Re: Re: [PATCH] Automatic module globals management | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-24114@lists.php.net to get a copy of this message | ||
Hi,
It only doesn't compile without your patch because youExactly what I said, no?changed the module structure in your patch :) It compiles fine if you check for something that exists in 5_2 already instead of checking for something that will exist next week.PHP_5_2 hasn't "globals_id_ptr". And nobody set "globals_id".
I saw.It needs 'with it' to prevent crashes that win32 extensions will continue to have until they upgrade to use your new API.I am going to commit patch into 5_2 on this week (it is already committed into HEAD).
/me tattoos that on her chestInternal modules don't cause those crashes, only external modules do. Everything gets freed in the end anyway, it's just a matter of timing for the external ones.You are right.
Dmitry.- Steph ----- Original Message ----- From: "Dmitry Stogov" <dmitry@zend.com> To: "'Steph Fox'" <steph@zend.com>; "'Stanislav Malyshev'" <stas@zend.com> Cc: <internals@lists.php.net> Sent: Tuesday, June 13, 2006 3:22 PM Subject: RE: [PHP-DEV] Re: [PATCH] Automatic module globals managementSteph, I don't understand your patch. (It doesn't compile without my patch and doesn't need with it). Why you don't just call ts_free_id(*module->globals_id_ptr)and do solarge extra work? Why you free globals for external extensions and not for internals? Thanks. Dmitry.__________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.comSF>>resource id, and it would need to be a ZTS build.-----Original Message----- From: Steph Fox [mailto:steph@zend.com] Sent: Sunday, June 11, 2006 12:49 PM To: Stanislav Malyshev Cc: Dmitry Stogov; internals@lists.php.net Subject: Re: [PHP-DEV] Re: [PATCH] Automatic module globals management Hi Staslook at SF>>it, that's a screwed up configuration. So we would blame the user for our broken code. Do you think it's a good idea.Whatever way you-- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115No I don't, so I wrote something completely different. Is the attached a better solution? Again, it's intended to work _alongside_ Dmitry's, not replace it. It checks for globals_id_ptr, you need to change that to globals_id if you're trying it against current 5_2. - Steph-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php__________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com