Package: php5-xapian
Version: 1.0.5-1
Severity: important

Hey again,

While trying the examples in /usr/share/doc/php5-xapian/examples:
[EMAIL PROTECTED]:examples$ php5 simpleindex.php5

Warning: include(php5/xapian.php): failed to open stream: No such file
or directory in /usr/share/doc/php5-xapian/examples/simpleindex.php5
on line 27

Warning: include(): Failed opening 'php5/xapian.php' for inclusion
(include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/doc/php5-xapian/examples/simpleindex.php5 on line 27
Usage: simpleindex.php5 PATH_TO_DATABASE

The problem is that /usr/share/php5 is not in the include_path.
Now, I don't know if this can be considered precisely a bug, at least
a warning would be useful, rationale:

- xapian docs tell you that after installing the php5 module, you can
happily include xapian.php, like with my previous bug report, you
usually expect installed modules to just work™. Hence you get a
misterious error, until you find out that the include path is wrong.
- this can be fixed by including directly /usr/share/php5/xapian.php,
but I can imagine this is not optimal.

So I suggest any of the following:
- add a README.Debian with a mention to this.
- make xapian.ini do some clever thing to include /usr/share/php5 in
the include_path (maybe not ideal)
- install xapian.php to /usr/share/php/

Perhaps I'm missing /something/ that creates a link to php5/ dir in
/usr?. I'm including a brief dpkg -l here:
[EMAIL PROTECTED]:examples$ dpkg -l|grep php5
ii  php5-cgi                                       5.2.6-1ubuntu4
              server-side, HTML-embedded scripting language (CGI bina
ii  php5-cli                                       5.2.6-1ubuntu4
              command-line interpreter for the php5 scripting languag
ii  php5-common                                    5.2.6-1ubuntu4
              Common files for packages built from the php5 source
ii  php5-mysql                                     5.2.6-1ubuntu4
              MySQL module for php5
ii  php5-pgsql                                     5.2.6-1ubuntu4
              PostgreSQL module for php5
ii  php5-sqlite                                    5.2.6-1ubuntu4
              SQLite module for php5
ii  php5-xapian                                    1.0.5-1
              Xapian search engine interface for PHP5

Thanks again,

Diego

Reply via email to