[Xapian-discuss] PHP bindings

Samuel Liddicott sam@liddicott.com
Wed, 26 May 2004 11:14:04 +0100


----- Original Message ----- 
From: "James Aylett" <james-xapian@tartarus.org>
To: <xapian-discuss@lists.xapian.org>
Sent: Wednesday, May 26, 2004 10:16 AM
Subject: Re: [Xapian-discuss] PHP bindings


> On Wed, May 26, 2004 at 03:59:09AM +0100, Olly Betts wrote:
>
> > It's been pointed out to me that the PHP bindings are wrapped with any
> > C++ namespaces removed.  Particularly bad is Xapian::Auto::open() which
> > just becomes open() in PHP.
>
> Yes, this isn't pleasant :-(
>
> > Apparently PHP4 doesn't have any formal namespace-like feature, but we
> > can simply prefix all Xapian symbols with "xapian_".  I'm told that's
> > a common convention.
>
> That seems reasonable, yes.

I'm pretty sure all the xapian object methods are implemented as php object
methods not global classless methods.

So Xapian::Auto::open should only work as a method of Xapian_Auto or maybe
Auto.

Sam