[Xapian-discuss] gettin erro with xapian binidngs 0.9.5
olly at survex.com
Tue Apr 18 11:28:17 BST 2006
On Tue, Apr 18, 2006 at 08:36:47AM +0530, durga bidaye wrote:
> Plz help.... Btw i had to install 0.9.5 coz i reinstalled my OS n on
> xapian.org, the earlier version ie. 0.9.4 was not available. Can i obtain
> the earlier version somehow?
0.9.5 fixed a problem with PHP overload resolution - if there was no
match found 0.9.4 would silently ignore the problem and just return
having not called Xapian at all. In this situation, 0.9.5 gives
the error you're getting.
So returning to 0.9.4 will probably just hide a bug in your code.
> *Fatal error*: No matching function for overloaded 'Document_add_posting' in
> */home/jana/public_html/final_file_search/file_indexer.php* on line *48
> Document_add_posting($doc, $term, $pos);
So this probably means that one of the parameters isn't the right type sometimes
(at a guess, it's probably going wrong at the end of the input file). To find
out, add this on the line before the call to Document_add_posting and run it
echo gettype($doc)," ",gettype($term)," ",gettype($pos),"\n";
More information about the Xapian-discuss