Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56647 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7275 invoked from network); 28 Nov 2011 13:44:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2011 13:44:42 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:53115] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/B2-21284-84093DE4 for ; Mon, 28 Nov 2011 08:44:41 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id 38DDBDE13E; Mon, 28 Nov 2011 13:44:36 +0000 (GMT) Date: Mon, 28 Nov 2011 13:44:36 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Richard Quadling cc: Ferenc Kovacs , PHP Developers Mailing List In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-114755247-1322487876=:15415" Subject: Re: [PHP-DEV] run-tests.php and dynamic extension dependencies From: derick@php.net (Derick Rethans) --8323329-114755247-1322487876=:15415 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 28 Nov 2011, Richard Quadling wrote: > 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 tempora= ry > >> > 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... , b= ut > >> > 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 extensio= n > > that is built-in. And it's not portable because not on every platform > > the extension name =3D extension.so >=20 > Can you use PHP_SHLIB_SUFFIX? I am using that in my patch, but obviously that doesn't work with=20 extension=3D on the command line, which is how run-tests.php passes in=20 arguments from --INI--. derick@whisky:~$ php -dextension=3Digbinary.PHP_SHLIB_SUFFIX PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/5= =2E3dev/lib/php/extensions/debug-non-zts-20090626/igbinary.PHP_SHLIB_SUFFIX= ' - /usr/local/php/5.3dev/lib/php/extensions/debug-non-zts-20090626/igbinar= y.PHP_SHLIB_SUFFIX: cannot open shared object file: No such file or directo= ry in Unknown on line 0 cheers, Derick --=20 http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug --8323329-114755247-1322487876=:15415--