Tomasz Jackowiak
2006-Oct-19 15:25 UTC
[Xapian-discuss] Writing with xapian-tcpsrv and php
Hi, I think, there is missing constructor function supporting remote writing for XapianWritableDatabase class in the php bindings (0.9.7). This code: $db = new XapianWritableDatabase(remote_open($db_host, $db_port), $action); returns: Fatal error: No matching function for overloaded 'new_XapianWritableDatabase' (...) $db = new XapianWritableDatabase($path, $action); works fine. xapian-tcpsrv is running with --writable parameter. Tom
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