[Xapian-discuss] php fatal error no matching for overloaded function Enquire_set_sort_by_key

Olly Betts olly at survex.com
Tue Apr 3 06:11:44 BST 2012


On Sun, Apr 01, 2012 at 11:51:10AM +0800, Xiao-Wei (Shawn) Xu wrote:
> I'm using PHP. Xapian is giving me this:
> 
> Fatal error: No matching function for overloaded 'Enquire_set_sort_by_key'
> in PATH/xapian.php line 1068

What version of Xapian are you using?  Line 1068 doesn't seem to match
with 1.2.9, so I'm guessing something older.

This seems to work for me with 1.2.9, and is even tested in
smoketest.php.  It looks like that test was added in 1.0.5 in 2007.

Omitting the second parameter is deprecated and in 1.3.0 you have to
specify it, but the generated code doesn't have a case statement in
1.3.0, so I don't think you're using that.

So more information required I'm afraid.  As well as the version you
are using, a minimal PHP script which shows the problem would be useful.

Cheers,
    Olly



More information about the Xapian-discuss mailing list