Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28280 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73903 invoked by uid 1010); 7 Mar 2007 06:09:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73888 invoked from network); 7 Mar 2007 06:09:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2007 06:09:10 -0000 Authentication-Results: pb1.pair.com header.from=kingwez@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kingwez@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.184.239 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kingwez@gmail.com X-Host-Fingerprint: 64.233.184.239 wr-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.184.239] ([64.233.184.239:18415] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/6B-04082-5075EE54 for ; Wed, 07 Mar 2007 01:09:09 -0500 Received: by wr-out-0506.google.com with SMTP id 50so87024wri for ; Tue, 06 Mar 2007 22:09:07 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gfWOd4h9SX6P7AIPvh05fY1PnYzXHq6zOMMgJwWhONstUt/g4h8nzLvGjkb0UgzOdDARaY+QdUzbFmMYTNDn2z7sb63gSzPF+O6pnDLhXIP4MTzc2/CuKvvzPpf5mHQqj3Fmg4aJhdRk6UmCnpbFtjy8JuVoMZjOXVEgdnneLdY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=od1kKP5i7MlvzltV/17sPm8BHOrhOpDGDIaak6BGgj1WcuCCYaN9CWFT5Zx7eAThdcpeVmchwBQRMz5WgM4Z/isnhCO3kjip4OHC6Asrxe+5PEtOdg7xdsPW6rnjeSvXP0/TX5VmM7V1NDWSS0y9uWsxSmZL7lY0JJJbMFy8eR4= Received: by 10.114.169.2 with SMTP id r2mr2058560wae.1173247746467; Tue, 06 Mar 2007 22:09:06 -0800 (PST) Received: by 10.114.53.18 with HTTP; Tue, 6 Mar 2007 22:09:06 -0800 (PST) Message-ID: <4e89b4260703062209r6197b580qd77958a3dc9004eb@mail.gmail.com> Date: Wed, 7 Mar 2007 01:09:06 -0500 To: "Michael Vergoz" Cc: ceo@l-i-e.com, internals@lists.php.net In-Reply-To: <00ac01c75f2c$44efe280$070110ac@michaelb651094> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <008c01c75c05$b6584ae0$070110ac@michaelb651094> <41168.216.230.84.67.1172786770.squirrel@www.l-i-e.com> <00ac01c75f2c$44efe280$070110ac@michaelb651094> Subject: Re: [PHP-DEV] Thread safe problem on module_registry (Zend API Feature/Change request) From: kingwez@gmail.com ("Wez Furlong") Just curious, why did you choose to mutex around a hash instead of using the zend_ts_hash functions? Changing the access semantics while preserving the type and name of that variable will cause any external modules that are unaware of that change to subtly break, or if you're lucky, crash hard. Seems "better" to make that break a little bit more obvious by changing the name, or introducing an API to encapsulate the correct access semantics. These are just suggestions. My main comments are that the locking macros are mildly ugly and that a lack of compile time enforcement on the new locking requirement will cause people pain with modules outside of the main php distribution. --Wez. On 3/5/07, Michael Vergoz wrote: > Hello, > > I made a patch that "mutex'ed" module_registry and module_count. > For the moment it doesn't solve the dl(). > > The patch for last CVS PHP_5_2 > http://mykii.binarysec.com/PHP/module_registry_mutex/module_register_mutex.patch > > Small description : > http://mykii.binarysec.com/PHP/module_registry_mutex/readme.txt > > Regards, > Michael Vergoz > > ----- Original Message ----- > From: "Richard Lynch" > To: "Michael Vergoz" > Cc: > Sent: Thursday, March 01, 2007 11:06 PM > Subject: Re: [PHP-DEV] Thread safe problem on module_registry (Zend API > Feature/Change request) > > > > On Thu, March 1, 2007 7:29 am, Michael Vergoz wrote: > > > > I don't claim to understand this issue fully/deeply, but I'm > > definitely +1 on resurrecting 'dl' if this change fixes everything to > > everyone's satisfaction. > > > > Not that my vote actually counts, as I've never had the skills/time to > > actually contribute C code to PHP. > > > > I may be the only user on the planet with a shared host that lets me > > use 'dl' to pull in extensions, but there it is, and I kinda need it, > > as there are no other viable options to do what I need to do, other > > than changing to a new webhost I might not like... :-) > > > > -- > > Some people have a "gift" link here. > > Know what I want? > > I want you to buy a CD from some starving artist. > > http://cdbaby.com/browse/from/lynch > > Yeah, I get a buck. So? > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >