Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25690 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79891 invoked by uid 1010); 14 Sep 2006 17:30:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 79876 invoked from network); 14 Sep 2006 17:30:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2006 17:30:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=steph@zend.com; spf=permerror; sender-id=softfail Authentication-Results: pb1.pair.com header.from=steph@zend.com; sender-id=softfail Received-SPF: error (pb1.pair.com: domain zend.com from 192.38.9.232 cause and error) 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] ([192.38.9.232:15096] helo=gw2.emini.dk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/2F-45066-79199054 for ; Thu, 14 Sep 2006 13:30:36 -0400 Received: by gw2.emini.dk (Postfix, from userid 504) id 707FDC58E3; Thu, 14 Sep 2006 19:29:57 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on gw2.emini.dk X-Spam-Detected: no X-Spam-Status: No, score=1.7 required=5.0 tests=AWL,BAYES_00, RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL autolearn=no version=3.1.3 X-Spam-Level: * Received: from foxbox (unknown [84.228.30.154]) by gw2.emini.dk (Postfix) with ESMTP id 2EE9EC54D8; Thu, 14 Sep 2006 19:29:55 +0200 (CEST) Message-ID: <064c01c6d822$d37bc730$6602a8c0@foxbox> Reply-To: "Steph Fox" To: "Pierre" , "Michael B Allen" Cc: References: <20060914104410.09bdd7f6.mba2000@ioplex.com> <20060914131414.0cef91b2.mba2000@ioplex.com> Date: Thu, 14 Sep 2006 19:25:49 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; 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] Module API Changes From: steph@zend.com ("Steph Fox") Hi Michael, Pierre - Erm, no they aren't in the upgrade guide, because the upgrade guide is aimed at user issues and this was seen primarily as an extension author issue. Do people generally think the module and extension API bumps should be in there? - Steph > Hello, > > On 9/14/06, Michael B Allen wrote: >> On Thu, 14 Sep 2006 16:49:16 +0200 >> Pierre wrote: >> >> > Hello, >> > >> > On 9/14/06, Michael B Allen wrote: >> > >> > > Are there any other module API changes between 4 and the current >> > > version >> > > of PHP that would cause my module to fail to load? >> > >> > PHP internals API has many changes between two major versions. Don't >> > expect a module compiled for php4 to be loaded smoothly in php5, the >> > same applies from one minor version to another. You have to provide a >> > binary per minor version, and for debug or non debug builds, like any >> > other DLL/so. >> > >> > (5.0 and 5.1 are php5 minor versions, for example) >> >> Sorry, I meant to say minor version. So the minor version will change >> if the module API changes? >> >> Our module compiles without modifcation with 4, 5.0, and 5.1. > > Some of mines too. The problem is not to compile but to load it. > >> Is it possible to load a module compiled with a ZEND_MODULE_API_NO that >> differs from the one PHP was compiled with? > > No > >> Is it possible for a module compiled with debugging to be loaded in a >> debug build of PHP? > > Neither > >> It's not a horribly big deal to ship 3 modules but it would be nice if >> our package had a level of forward compatibility (e.g. worked with a >> new snapshot that introduced a moduel API change). > > If it a snapshot have a new API, it will also have a new API version > and will be available in a new minor/major PHP version. > >> Has the module API changed in 5.2? > > Yes, if not it will still be 5.1.x. I think the changes will be > explained in the README.UPDATE_5_2 file in CVS, or they are already > in. > > --Pierre > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >