Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56650 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21284 invoked from network); 28 Nov 2011 14:58:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2011 14:58:38 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; 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:52236] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/10-20380-C91A3DE4 for ; Mon, 28 Nov 2011 09:58:37 -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 B849579951; Mon, 28 Nov 2011 15:58:33 +0100 (CET) To: Ferenc Kovacs Cc: Derick Rethans , Richard Quadling , PHP Developers Mailing List In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Mon, 28 Nov 2011 15:58:27 +0100 Message-ID: <1322492308.2710.1301.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit 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: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 ./configure --enable-igbinary=shared --enable-new-fancy-extension=shared should add both to the tmp-php.ini. I'm also not sure if we really want to cover all these cases in extra sections, the user can do run-tests.php -d extension=/path/to/extname.so this would also work for extensions outside the default extension_dir and one could test against different versions of the other extension, while I agree it's more annoying ... for the individual case. johannes