Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24000 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38432 invoked by uid 1010); 8 Jun 2006 18:24:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38417 invoked from network); 8 Jun 2006 18:24:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jun 2006 18:24:51 -0000 X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.5 (sometimes 2.4) (4) Received: from ([204.11.219.139:45352] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A4/65-00946-27B68844 for ; Thu, 08 Jun 2006 14:24:51 -0400 Received: from [207.126.233.18] (rasmus2.corp.yahoo.com [207.126.233.18]) (authenticated bits=0) by lerdorf.com (8.13.6/8.13.6/Debian-1) with ESMTP id k58IOktc021658; Thu, 8 Jun 2006 11:24:46 -0700 Message-ID: <44886B6D.8010801@lerdorf.com> Date: Thu, 08 Jun 2006 11:24:45 -0700 User-Agent: Thunderbird 3.0a1 (Macintosh/20060414) MIME-Version: 1.0 To: Steph Fox CC: Dmitry Stogov , internals@lists.php.net, Ilia Alshanetsky , Andi Gutmans References: <000001c68af5$50876930$6e02a8c0@thinkpad> <7.0.1.0.2.20060608110050.0521bb48@zend.com> <105301c68b27$e80c8d80$6602a8c0@foxbox> In-Reply-To: <105301c68b27$e80c8d80$6602a8c0@foxbox> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [PATCH] Automatic module globals management From: rasmus@lerdorf.com (Rasmus Lerdorf) Steph Fox wrote: > Andi, hi, > > >> I read the whole thread. >> I agree with Sara. While I understand where Steph is coming from, I >> still think this is a good change. It would allow us to use this >> method in the current tree right away, and for PECL authors who want >> to stay compatible with older versions they can use the old & ugly way >> of doing it until they feel comfortable in changing over. > > This redesign was presented as a fix for a win32 module API breakage in > PHP 5.1.3 that causes shared modules to crash. Adopting the proposed > changes now won't help in any way for existing extensions, since > everyone's saying 'oh it'll be nice to use it in the future'. It just > means we're stuck with the status quo, and of course the odd confused > extension author turning up with a strange shutdown crash under win32 > that didn't used to happen in PHP 5.1.2. > > It'd make more sense to apply the patch partially in 5_2 and change the > module API number (to address that issue and give extension authors some > hope of understanding what's going on), and apply the whole thing in > HEAD and bump the API number again. I really think applying it in 5_2 is > going to leave extension writers with a headache. As soon as you change the module api number you have a headache. At Yahoo! we would need to compile some 200 or so custom extensions. If we are forced to do that, a little tweak in the code itself is minor. -Rasmus