[Xapian-discuss] Query::Query() in PHP, also QueryParser::prefixes

Sam Liddicott sam@liddicott.com
Fri, 28 May 2004 14:34:40 +0100


----- Original Message ----- 
From: "James Aylett" <james-xapian@tartarus.org>
To: <xapian-discuss@lists.xapian.org>
Sent: Friday, May 28, 2004 1:01 PM
Subject: Re: [Xapian-discuss] Query::Query() in PHP, also
QueryParser::prefixes


> On Fri, May 28, 2004 at 12:39:00PM +0100, Francis Irving wrote:
>
> > I'm curious as to how to get the %name to work and make a proper
> > constructor wrapper.  Have you managed to get that going?
>
> I've got something almost working that doesn't use shadow classes; so
> you have to write:
>
> Database_add_document($db, $doc);
>
> This is reasonably happy, although there a bug somewhere which I need
> to look into. Can't get shadow classes to work at all, and the SWIG
> PHP4 documentation is almost non-existent on this subject. Sam, you
> actually got it working?

Yes, I had to re-write swig-php to do it. The xapian-php build system should
have been left in a condition where this was happening.

Sam