Re: [PATCH] Automatic module globals management

From: Date: Thu, 08 Jun 2006 17:02:54 +0000
Subject: Re: [PATCH] Automatic module globals management
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-23995@lists.php.net to get a copy of this message
DS>>The attached patch (for PHP_5_2) implements automatic management of module DS>>globals. DS>>The problem that module globals must be unregistered before extension DS>>unloading, because "globls_dtor" function is unloaded together with DS>>extension and cannot be called. I think the patch itself looks fine, and makes globals management cleaner. However, I'm not sure it would be for 5.2 for reasons cited by Steph - probably not a lot of extension would be reworked specifically for 5.2 (correct me if I'm wrong here) but for 6.0 probably most of them would need some massaging here and there, so putting it in 6.0 is quite OK, but putting it into 5.2 probably would not be used too much outside the engine modules - for which it doesn't matter much since we can fix them with old API as far as I see.
We can, but Dmitry broke the old API for win32 with his DL_UNLOAD exposure (which is where this redesign began). So a lot of modules simply won't work there without a little massaging at present - not a huge problem within PHP itself, but a niggling one for anyone with a non-public extension who thought they could just upgrade to PHP 5.1.3 and up. (A _very_ little massaging, but it's still a broken API.) I think we need to fix that API breakage in 5_2 regardless of what happens with this patch... - Steph

« previous php.internals (#23995) next »