Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56646 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5797 invoked from network); 28 Nov 2011 13:41:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2011 13:41:39 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qw0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:63516] helo=mail-qw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/62-21284-29F83DE4 for ; Mon, 28 Nov 2011 08:41:39 -0500 Received: by qabg40 with SMTP id g40so1195985qab.8 for ; Mon, 28 Nov 2011 05:41:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=FMytO6eXDGqRbqNHXgmP1u5GGhI1Hb/YrhyRBcGUv3c=; b=lMyENNsVBGyIDo+i0lmjgv1/vy2QGA3wOREDEVDVHRonAGvnknLfWSSF3ENMWBRmJU umPg3CxEthtBfGlvdI9IDSnFT4vEsSdSm2jef2/jtdpTYXR3aVp+CS4rsuYkjZ9s4kzm rJWudL7Tw+LLY/Ase3GwBosz4QBvf+FxJo5CI= Received: by 10.182.141.68 with SMTP id rm4mr12508184obb.23.1322487696518; Mon, 28 Nov 2011 05:41:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.42.226 with HTTP; Mon, 28 Nov 2011 05:41:15 -0800 (PST) Reply-To: RQuadling@GMail.com In-Reply-To: References: Date: Mon, 28 Nov 2011 13:41:15 +0000 Message-ID: To: Derick Rethans Cc: Ferenc Kovacs , PHP Developers Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] run-tests.php and dynamic extension dependencies From: rquadling@gmail.com (Richard Quadling) On 28 November 2011 13:36, Derick Rethans wrote: > On Mon, 28 Nov 2011, Ferenc Kovacs wrote: > >> On Mon, Nov 28, 2011 at 2:11 PM, Derick Rethans wrote: >> >> > I'm currently writing a shared extension thta depends on another >> > shared extension (igbinary). "make test" doesn't handle this at the >> > moment, because it removes every extension=3D line from it's temporary >> > php.ini. This means that the dependent extension (igbinary) now >> > isn't loaded, which means my extension doesn't load either and >> > obviously all the tests fail. >> > >> > I've attached a patch that adds a new --EXTENSIONS-- section to the >> > PHPT format. The run-tests.php script makes sure that all extensions >> > in that last are added to the PHP command with -dextension=3D... , but >> > only if they're not build in (or already loaded in some other way). >> > >> > The patch is simple, and it doesn't touch any other section or >> > functionality so I'm suggesting to commit it to PHP 5.3/5.4 and >> > trunk some time soon. >> >> wouldn't =C2=A0--INI-- + extension do the same? > > No, as the run-tests.php framework changes "extension_dir" to > "./modules/". It would also cause issues if you try to load an extension > that is built-in. And it's not portable because not on every platform > the extension name =3D extension.so Can you use PHP_SHLIB_SUFFIX? --=20 Richard Quadling Twitter : EE : Zend : PHPDoc : Fantasy Shopper @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea=C2=A0: fan.sh/6/370