[Xapian-devel] Problem with overloading add type casts of numeric strings in PHP bindings
Olly Betts
olly at survex.com
Tue Feb 14 09:58:41 GMT 2006
On Tue, Feb 14, 2006 at 12:03:48AM +0100, Mikael Johansson wrote:
> Overloaded methods are mapped in PHP to their implementation (_SWIG_0,
> _SWIG_1, ..) based on the types and number of arguments the user supplies.
> However, if one overload accept a string and another an integer the
> bindings fail to separate them since PHP treats numeric strings much the
> same as integers.
I've responded in bugzilla (short version: should be fixed in SVN):
http://xapian.org/cgi-bin/bugzilla/show_bug.cgi?id=68
> Other than that the new bindings with emulated overloads are great, much
> kudos.
All the credit is due to Kevin Ruland, who's recently taken on the role
of SWIG PHP maintainer.
Cheers,
Olly
More information about the Xapian-devel
mailing list