[Xapian-discuss] Writing with xapian-tcpsrv and php

Olly Betts olly at survex.com
Thu Oct 19 16:36:04 BST 2006


On Thu, Oct 19, 2006 at 04:24:53PM +0200, Tomasz Jackowiak wrote:
> I think, there is missing constructor function supporting remote 
> writing for XapianWritableDatabase class in the php bindings (0.9.7).

Hmm, yes - the new factory functions aren't wrapped.  I'll fix that
for the next release.

> This code:
> $db = new XapianWritableDatabase(remote_open($db_host, $db_port), 
> $action);
> returns:
> Fatal error: No matching function for overloaded 
> 'new_XapianWritableDatabase' (...)

This wouldn't be the right syntax anyway, though.  You'd use:

    $db = remote_open_writable($db_host, $db_port);

Cheers,
    Olly



More information about the Xapian-discuss mailing list