Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24002 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42430 invoked by uid 1010); 8 Jun 2006 18:32:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42415 invoked from network); 8 Jun 2006 18:32:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jun 2006 18:32:37 -0000 X-PHP-List-Original-Sender: steph@zend.com X-Host-Fingerprint: 192.38.9.232 gw2.emini.dk Linux 2.4/2.6 Received: from ([192.38.9.232:1726] helo=gw2.emini.dk) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D2/F5-00946-44D68844 for ; Thu, 08 Jun 2006 14:32:37 -0400 Received: from foxbox (IGLD-84-229-192-204.inter.net.il [84.229.192.204]) by gw2.emini.dk (Postfix) with ESMTP id 8774AB23DB; Thu, 8 Jun 2006 20:32:31 +0200 (CEST) Message-ID: <108001c68b29$6f93b930$6602a8c0@foxbox> Reply-To: "Steph Fox" To: "Rasmus Lerdorf" Cc: "Dmitry Stogov" , , "Ilia Alshanetsky" , "Andi Gutmans" References: <000001c68af5$50876930$6e02a8c0@thinkpad> <7.0.1.0.2.20060608110050.0521bb48@zend.com> <105301c68b27$e80c8d80$6602a8c0@foxbox> <44886B6D.8010801@lerdorf.com> Date: Thu, 8 Jun 2006 20:29:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: [PHP-DEV] Re: [PATCH] Automatic module globals management From: steph@zend.com ("Steph Fox") Hi Rasmus, >> 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. We aren't _forced_ to do that, I wrote a small patch over a week ago that fixes it internally and doesn't even touch the module_entry struct. But the more robust way would be to do as Dmitry's suggesting with the ZEND_MG(whatever) part of his patch. People with custom extensions at least are only working with one version of PHP at a time, I'd hope :) > > -Rasmus