[Xapian-discuss] PHP bindings
Olly Betts
olly@survex.com
Wed, 26 May 2004 03:59:09 +0100
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.
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.
There's also no PHP specific documentation or examples. In general
the C++ API documentation is a useful reference, but a document noting
how names, types, etc are mapped, and any differences would be useful -
like this one for the python bindings:
http://cvs.xapian.org/*checkout*/xapian/xapian-bindings/python/docs/bindings.html
Also a few small examples would be useful to get people started (again
like the python bindings have).
Does anyone have anything akin to simpleindex.cc and simplesearch.cc,
but in PHP? That would at least get people started.
Cheers,
Olly