[Xapian-discuss] PHP bindings

Gavin Gleason gavin.gleason at cognotent.com
Tue Feb 20 14:21:21 GMT 2007


Thanks a lot for the prompt response!

Gavin

On 2/20/07, Olly Betts <olly at survex.com> wrote:
> On Tue, Feb 20, 2007 at 01:51:55PM +0000, Gavin Gleason wrote:
> > I had to switch a website we are running to a new server and so at the
> > same time I updated xapian.  Has there been a big change in the php4
> > bindings for xapian?
>
> Yes, as of 0.9.7 we now generate OO wrappers for PHP.
>
> Previously we used a SWIG option which generated an interface of flat
> functions, which took the object as their first parameter.  This dates
> back to when there was a bug in SWIG which stopped the OO wrappers from
> working for Xapian, but this was fixed some time ago.
>
> > After building the php4 bindings I'm unable to run the tests, even
> > though the xapian library is loaded fine.
>
> "make check" should work, but I failed to update the examples (I'm in
> the process of doing so now).
>
> > It seems to me that the stubs starting with new_ have been replaced.  I
> > can get most things to work by replacing "new_" with "new Xapian"  Is
> > this suppose to be the case?
>
> There's a script which will automate most of the work required to update
> for you - see this message:
>
> http://thread.gmane.org/gmane.comp.search.xapian.general/3561/focus=3562
>
> Cheers,
>     Olly
>



More information about the Xapian-discuss mailing list