Opened 15 years ago

Closed 15 years ago

#371 closed defect (fixed)

xapian.php in /usr/share/php instead of /usr/share/php5

Reported by: Ivo Jansch Owned by: Olly Betts
Priority: normal Milestone: 1.0.7
Component: Xapian-bindings Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: Linux

Description

The ubuntu packages install xapian.php in the /usr/share/php5 folder; however, php5's include path on ubuntu users /usr/share/php instead, making the php examples break if xapian.php isn't moved.

The examples then include 'php5' in the path of the file include, assuming that /usr/share is in the include path. This is not the case.

Suggestion: change the example to include "xapian.php" and change the package so it installs in /usr/share/php

(An even nicer solution would be if the php xapian extension itself would contain the classes and wouldn't need xapian.php at all)

Change History (1)

comment:1 by Olly Betts, 15 years ago

Milestone: 1.0.7
Resolution: fixed
Status: newclosed

Like #370, this was fixed in 1.0.7-3 in Ubuntu intrepid.

The bindings are generated by SWIG, which currently uses the approach of generating the classes in a wrapper. It's not really feasible to change how this works without changing SWIG. If you'd like to work on that, I can give you some pointers on where to start.

Note: See TracTickets for help on using tickets.