Re: run-tests.php and dynamic extension dependencies

From: Date: Mon, 28 Nov 2011 14:05:42 +0000
Subject: Re: run-tests.php and dynamic extension dependencies
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-56648@lists.php.net to get a copy of this message
hi Derick, On Mon, Nov 28, 2011 at 2:11 PM, Derick Rethans <derick@php.net> 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

« previous php.internals (#56648) next »