[Xapian-tickets] [Xapian] #753: Unable to load xapian.so extension on php7 and debian 9
Xapian
nobody at xapian.org
Sun Oct 8 21:20:16 BST 2017
#753: Unable to load xapian.so extension on php7 and debian 9
-----------------------------------+--------------------------
Reporter: dtouzeau | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Xapian-bindings (PHP) | Version: 1.4.4
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: | Operating System: Linux
-----------------------------------+--------------------------
Comment (by olly):
I'm testing with PHP 7.1 and `/usr/bin/php7.1 -m` shows me:
{{{
$ /usr/bin/php7.1 -m
[PHP Modules]
calendar
Core
ctype
date
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
shmop
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
}}}
However, `make check` in the source tree runs the testsuite like so:
{{{
php7.1 -n -d safe_mode=off -d enable_dl=on -d extension_dir=.libs -d
include_path=php7
}}}
The `-n` tells it not to load the default config files, and in that mode
no "Zend Modules" are loaded:
{{{
$ /usr/bin/php7.1 -n -d safe_mode=off -d enable_dl=on -d
extension_dir=.libs -d include_path=php7 -m
[PHP Modules]
Core
date
filter
hash
libxml
openssl
pcntl
pcre
Reflection
session
SPL
standard
zlib
[Zend Modules]
}}}
And in the PHP 7.1 config, I can see that "opcache" is loaded by default
but no others are, which matches the output above:
{{{
$ rgrep -i zend_extension /etc/php/7.1
/etc/php/7.1/mods-available/opcache.ini:zend_extension=opcache.so
}}}
So it seems to me that Debian's PHP 7.1 loads the opcache Zend extension
(and no others) by default, but that Xapian's bindings don't need this, as
the tests are run without it by default anyway.
What Zend extensions do you think are needed, and what evidence do you
have for that?
--
Ticket URL: <https://trac.xapian.org/ticket/753#comment:8>
Xapian <https://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list