[Xapian-discuss] PHP bindings with directors

Olly Betts olly at survex.com
Tue Aug 25 12:00:07 BST 2009

On Tue, Aug 25, 2009 at 08:51:56AM +0200, Ví?a Pl?ek wrote:
> today I had realized that Swig supports directors in PHP until now :)
> 	see : http://www.swig.org/

This is the result of the Google Summer of Code project I have been
mentoring this year:


It went very well and made it into a SWIG release already.

> Now I am trying to make PHP bindings to be able to try XapianDecider in
> PHP, but I don't understand SWIG too much, so I don't know if I will
> succeed.

I've tried to enable directors for Xapian's PHP bindings with this


However this doesn't actually work - it seems that the matchdecider that
the C++ layer gets is NULL.  The SWIG testsuite has good coverage for
directors, so we know that PHP directors are working in general.  I
haven't investigated in detail why it doesn't in this case, mostly
because I'm trying to focus on getting to a 1.2.0 release, and we can
enable PHP directors in 1.2.x without breaking existing scripts.

> Is possible that official xapian PHP bindings with directors support for
> current stable version will be made in some short term?

I'd guess maybe a month or two, but it really depends how everything
else goes.

If you want to try to work out what's going on sooner, that'd be great.


More information about the Xapian-discuss mailing list