search for: is_doubl

Displaying 1 result from an estimated 1 matches for "is_doubl".

Did you mean: is_double
2006 Feb 13
1
Problem with overloading add type casts of numeric strings in PHP bindings
...of a numeric string which effectivly prevents the application from reaching the next section which checks for IS_STRING in the sence of a term and executes the intended overload. The solution would be to change the integer test from _v = (Z_TYPE_PP(argv[1]) == IS_LONG || Z_TYPE_PP(argv[1]) == IS_DOUBLE || Z_TYPE_PP(argv[1]) == IS_STRING) ? 1 : 0; to _v = (Z_TYPE_PP(argv[1]) == IS_LONG || Z_TYPE_PP(argv[1]) == IS_DOUBLE) ? 1 : 0; Thus forcing the user to typecast his parameters when in doubt (PHP does support casts), before invoking the Xapian methods, to ensure that the correct overload...