Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56652 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24225 invoked from network); 28 Nov 2011 15:04:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2011 15:04:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.49 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.49 mail-qw0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:63915] helo=mail-qw0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/B0-20380-713A3DE4 for ; Mon, 28 Nov 2011 10:04:55 -0500 Received: by qabj40 with SMTP id j40so1487675qab.8 for ; Mon, 28 Nov 2011 07:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=C3a5+TMuKqApIvnwFTNWbsISUEXvlMMNMJx2YuZY4Wo=; b=py9JbtCGzr8Phpao0ZZ3+nvgPOxCqty3NBd+x8jshDkmrmK4TOz9ta+0MB9AXDUyY/ N0453/rUBa1Aax/sWPXKfP9xjz3MQVdgzERlWSXI6j87ClYH5V+adlMsB+IspHQy5bAQ KcO3HqKd+lf/OcUsmJ7oxB6rHzQBreLDhfMXQ= MIME-Version: 1.0 Received: by 10.224.31.66 with SMTP id x2mr3194746qac.27.1322492692842; Mon, 28 Nov 2011 07:04:52 -0800 (PST) Received: by 10.229.38.134 with HTTP; Mon, 28 Nov 2011 07:04:52 -0800 (PST) In-Reply-To: <1322492308.2710.1301.camel@guybrush> References: <1322492308.2710.1301.camel@guybrush> Date: Mon, 28 Nov 2011 16:04:52 +0100 Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: Derick Rethans , Richard Quadling , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=20cf302075902cc76704b2ccd3ca Subject: Re: [PHP-DEV] run-tests.php and dynamic extension dependencies From: tyra3l@gmail.com (Ferenc Kovacs) --20cf302075902cc76704b2ccd3ca Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2011/11/28 Johannes Schl=C3=BCter > On Mon, 2011-11-28 at 15:18 +0100, Ferenc Kovacs wrote: > > + foreach ($extensions as $req_ext) { > > + $loaded =3D `$php -n -r 'echo (int) extension_loaded("$req_ext");'`; > > + if ($loaded =3D=3D '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=3Dshared --enable-new-fancy-extension=3D= shared > > should add both to the tmp-php.ini. > uhm, based on the code: http://svn.php.net/viewvc/php/php-src/trunk/Makefile.global?view=3Dmarkup#l= 99 http://svn.php.net/viewvc/php/php-src/trunk/Makefile.global?view=3Dmarkup#l= 86 the extension lines will be stripped/omitted from 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=3D/path/to/extname.so > yeah, but we advertise make test as the official/endorsed way to run the test suite, so that should work. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --20cf302075902cc76704b2ccd3ca--