Displaying 1 result from an estimated 1 matches for "writabledatabase_replace_docu".
2006 Feb 13
1
Problem with overloading add type casts of numeric strings in PHP bindings
...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.
The problem is illustrated in WritableDatabase_replace_document() which
takes either the docid or an unique term found in the document, ie the same
number of arguments. The check for a number if implemented as IS_STRING in
the sence of a numeric string which effectivly prevents the application from
reaching the next section which checks for IS_STRING in...