Re: run-tests.php and dynamic extension dependencies
| From: | Derick Rethans | Date: | Mon, 28 Nov 2011 15:02:46 +0000 |
| Subject: | Re: run-tests.php and dynamic extension dependencies | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56651@lists.php.net to get a copy of this message | ||
On Mon, 28 Nov 2011, Johannes Schlüter wrote:
> 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
the tmp-php.ini has no extension= lines in it, they're stripped out.
>
> ./configure --enable-igbinary=shared --enable-new-fancy-extension=shared
>
> should add both to the tmp-php.ini.
But that is not doing anything from the phpized directory... where you'd
just run ./configure.
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug