[Xapian-discuss] Why is a "DocNotFoundError" when deleting a document a Fatal error in php?

Olly Betts olly at survex.com
Fri Oct 28 11:12:44 BST 2005


On Fri, Oct 28, 2005 at 10:56:59AM +0200, Arjen van der Meijden wrote:
> So if Xapian::RuntimeError should not be fatal in php (which I think it 
> shouldn't)

Indeed - the current handling of exceptions by the PHP bindings is
unhelpful.  The documentation notes that this needs fixing.

> it probably needs to be adjusted to do something like 
> zend_error(E_WARNING, someMessage); instead of Swig's own exception 
> handler (or the swig-handler should be reworked to have RuntimeErrors 
> not be fatal).

You seem to understand what's going on with SWIG and PHP better than I
do.  Are you able to work up a patch?

Cheers,
    Olly



More information about the Xapian-discuss mailing list