Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30002 invoked from network); 28 Nov 2011 15:25:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2011 15:25:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:42359] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/E1-20380-4F7A3DE4 for ; Mon, 28 Nov 2011 10:25:41 -0500 Received: from [192.168.2.59] (dslb-084-057-040-128.pools.arcor-ip.net [84.57.40.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 9D1BE79967; Mon, 28 Nov 2011 16:25:37 +0100 (CET) To: Derick Rethans Cc: Ferenc Kovacs , Richard Quadling , PHP Developers Mailing List In-Reply-To: References: <1322492308.2710.1301.camel@guybrush> Content-Type: text/plain; charset="UTF-8" Date: Mon, 28 Nov 2011 16:25:34 +0100 Message-ID: <1322493934.2710.1392.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] run-tests.php and dynamic extension dependencies From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Mon, 2011-11-28 at 15:02 +0000, Derick Rethans wrote: > On Mon, 28 Nov 2011, Johannes Schlüter wrote: > > > On Mon, 2011-11-28 at 15:18 +0100, Ferenc Kovacs wrote: > > > + foreach ($extensions as $req_ext) { > > > + $loaded = `$php -n -r 'echo (int) extension_loaded("$req_ext");'`; > > > + if ($loaded == '0') { > > > > This should use the tmp-php.ini as that might already load the required > > extension if it was built in the same built. A configure line like > > the tmp-php.ini has no extension= lines in it, they're stripped out. Ah indeed, it adds -d extension=... directives, I thought they would be added on to the ini file. My mistake. > > ./configure --enable-igbinary=shared --enable-new-fancy-extension=shared > > > > should add both to the tmp-php.ini. > > But that is not doing anything from the phpized directory... where you'd > just run ./configure. People might, for whatever reason, built the extension as part of the PHP build. For instance one might think about using this feature with PDO drivers. And build PDO shared (not saying that makes sense, but it is a supported thing) johannes