Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56648 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9813 invoked from network); 28 Nov 2011 14:05:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2011 14:05:48 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:59120] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 99/13-21284-A3593DE4 for ; Mon, 28 Nov 2011 09:05:46 -0500 Received: by ggnk1 with SMTP id k1so6047847ggn.29 for ; Mon, 28 Nov 2011 06:05:43 -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=90IkyvU0p7T6pPxpskdRbJwH4gf57CacO6dvLxDvhks=; b=tY9BDbPiu2+xZzyPJe5Dp/kE9KjTzkSOo5FndQv4e8TSly009NCHeLLTeN1rbCHyH9 Kz9m/hRryi69r0/n4BFPbMt0BfBhpRQp48yhwjD/ez+GK2QWyVlzu1slExWbAw/zFUWS pCRbg1VH0rznRNCZ+SL0JQhx3oUNR/9cP5F2k= MIME-Version: 1.0 Received: by 10.236.201.137 with SMTP id b9mr61653960yho.124.1322489142179; Mon, 28 Nov 2011 06:05:42 -0800 (PST) Received: by 10.146.204.6 with HTTP; Mon, 28 Nov 2011 06:05:42 -0800 (PST) In-Reply-To: References: Date: Mon, 28 Nov 2011 15:05:42 +0100 Message-ID: To: Derick Rethans Cc: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] run-tests.php and dynamic extension dependencies From: pierre.php@gmail.com (Pierre Joye) hi Derick, 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= 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. It could be handy yes, the idea until now was to create a custom php.ini to load (non core) extensions. > 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=... , 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. Patch looks fine, I've to test on win tho'. I would suggest to call once php -m instead of the foreach and check the result/ Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org