[Xapian-discuss] Query::Query() in PHP, also QueryParser::prefixes

Francis Irving francis@flourish.org
Fri, 28 May 2004 12:01:24 +0100


On Fri, May 28, 2004 at 11:34:24AM +0100, James Aylett wrote:
> On Fri, May 28, 2004 at 08:46:43AM +0100, Francis Irving wrote:
> 
> > This line:
> >         $query = new_QueryCombine(Query_OP_AND, $query1, $query2);
> > Gives this error:
> >     Fatal error: Call to undefined function: new_querycombine()
> > 
> > No other function with the word combine appears in the PHP function
> > list either.
> 
> Hmm. What version of SWIG are you using?

owl:~$ swig -version

SWIG Version 1.3.21
Copyright (c) 1995-1998
University of Utah and the Regents of the University of California
Copyright (c) 1998-2003
University of Chicago
Compiled with g++ [i686-pc-linux-gnu]

Please see http://www.swig.org for reporting bugs and further information
owl:~$ dpkg -s swig
Package: swig
Status: install ok installed
Priority: optional
Section: interpreters
Installed-Size: 2748
Maintainer: Torsten Landschoff <torsten@debian.org>
Source: swig1.3
Version: 1.3.21-5
Replaces: swig1.3
Depends: libc6 (>= 2.3.2.ds1-4), libgcc1 (>= 1:3.3.3-1), libstdc++5 (>= 1:3.3.3-1), libswig1.3.21
Suggests: swig-examples, swig-doc
Description: Generate scripting interfaces to C/C++ code
 SWIG is a compiler that makes it easy to integrate C and C++ code
 with other languages including Perl, PHP, Tcl, Ruby, Python, Java,
 Guile, Mzscheme, Chicken, Ocaml, Pike, and C#.
 .
 Swig takes a set of ANSI C/C++ declarations and generates an
 interface for them to your favorite scripting language.

Francis