[Xapian-discuss] PHP bindings
Francis Irving
francis@flourish.org
Wed, 26 May 2004 11:19:40 +0100
On Wed, May 26, 2004 at 11:14:04AM +0100, Samuel Liddicott wrote:
> > > 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.
Well, I can certainly call them all as global functions. And if you
run this with the Xapian bindings installed, you can see open as a
function there.
$fns = get_defined_functions();
foreach ( $fns["internal"] as $fn)
{
print "<br>" . $fn;
}
Using xapian-bindings-0.8
Francis