[Xapian-discuss] building php bindings

James Aylett james-xapian at tartarus.org
Fri Nov 17 19:02:33 GMT 2006


On Fri, Nov 17, 2006 at 07:00:01PM +0000, Olly Betts wrote:

> But this raises an issue - "php-config --extension-dir " reports the
> build time setting, whereas that could have been overridden in php.ini.
> We can get the php.ini value using:
> 
> php -r 'print ini_get("extension_dir")."\n";'
> 
> Currently we cope with installing without the CLI version of PHP
> installed - I guess in this case we could fall back to php-config.
> 
> But this reads the CLI PHP setting, which might be different from that
> which mod_php sees.  So I don't really know what the best answer is!
> Perhaps to just use php_config which works for most people.  And if
> you change this in php.ini, you have to do extra work to install.
> 
> Thoughts?

Use php_config, and provide a mechanism to override the install
location - which we do. INSTALL should perhaps mention this in a
section other than "Installing without root access"; or perhaps it
should be "Installing in non-standard locations"?

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list