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

Xiao-Wei (Shawn) Xu xwxu at astreetpress.com
Tue Apr 3 06:42:41 BST 2012


Hi,

xapian.so extension:

Xapian Compiled Version => 1.2.4
Xapian Linked Version => 1.2.7

xapian.php seeing from the head of the file:

 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.40

Looks there's version inconsistency there?

Thanks.

On Tue, Apr 3, 2012 at 1:11 PM, Olly Betts <olly at survex.com> wrote:

> 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