[Xapian-discuss] Debian and Ubuntu packages for 0.9.9 available

Olly Betts olly at survex.com
Mon Nov 20 06:22:00 GMT 2006


On Sun, Nov 19, 2006 at 03:46:38AM -0500, Francis Irving wrote:
> Where did you get a package with phpapi-20020429? Even the
> pre-security fix PHP package is 20020918.

Hmm, something is odd here.

For PHP5, the correct phpapi-NNNNNNNN dependency is the number reported
by "php-config5 --phpapi".  This is the same as the number reported in
the directory given by "php-config5 --extension-dir", which makes sense
(different PHP API goes in a different directory).

PHP4 doesn't have "php-config4 --phpapi", so currently debian/rules
uses "php-config --extension-dir" and hacks off the directory part.

But that gives the wrong answer for PHP4.  The value we need there is
that defined in /usr/include/php4/main/php.h:

#define PHP_API_VERSION 20020918

However, the value defined in /usr/include/php5/main/php.h is wrong
for PHP5 (should be 20051025):

#define PHP_API_VERSION 20041225

I can get the value I actually need in a way which works for PHP4
and PHP5 from the output of "dpkg -s" on a suitable package, but I
fail to understand exactly where this number comes from, and why
it doesn't agree with the "extension-dir" for PHP4...

Cheers,
    Olly



More information about the Xapian-discuss mailing list