PHP bindings (was Re: [Xapian-discuss] Q prefix / Unique ID not being found)

James Aylett james-xapian at tartarus.org
Tue Mar 29 11:58:55 BST 2005


On Tue, Mar 29, 2005 at 11:21:36AM +0100, Olly Betts wrote:

> > If this is the problem, I have a fix ready to go which uses a local
> > (blank) php.ini when running tests. Certainly works on 1.3.22 without
> > problems, although if it's actually a different problem it may not
> > help for 1.3.23.
> 
> So it sounds like your fix would be useful.

Committed.

I also have the following lying around:

----------------------------------------------------------------------
===================================================================
RCS file: /usr/data/cvs/xapian/xapian-bindings/xapian.i,v
retrieving revision 1.27
diff -p -u -r1.27 xapian.i
--- xapian.i    21 Mar 2005 09:37:45 -0000      1.27
+++ xapian.i    21 Mar 2005 14:19:43 -0000
@@ -263,7 +263,6 @@ class MSet {
     weight get_max_possible();
     weight get_max_attained();
     doccount size() const;
-    doccount max_size() const;
     bool empty() const;
     %extend {
        bool is_empty() const { return self->empty(); }
----------------------------------------------------------------------

which I think was something Richard suggested last week. IIRC
max_size() is an STL requirement; size() should be sufficient for all
SWIG target languages.

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list