1 Sep 02:37
PHP error in index_text()
Yannick Warnier <ywarnier <at> beeznest.org>
2008-09-01 00:37:24 GMT
2008-09-01 00:37:24 GMT
Hi there,
I'm using the Debian php5-xapian package version 1.0.7-3~bpo40+1 and
I'm getting this error:
Fatal error: No matching function for overloaded
'TermGenerator_index_text' in /usr/share/php/xapian.php on line 1498
The code around it (in xapian.php) is this:
function index_text($text,$weight=1,$prefix=null) {
switch (func_num_args()) {
case 1: case 2: TermGenerator_index_text($this->_cPtr,
$text,$weight); break;
default: TermGenerator_index_text($this->_cPtr,$text,
$weight,$prefix);
}
}
Line 1498 is the one with "case 1: case 2:".
The call to that function (index_text()) in my PHP script is actually
made (in this case) with 2 parameters from my PHP script:
- one empty string
- 1
I understand that it's wrong to send an empty string as first parameter
if that's supposed to be the text we want to index, but is it necessary
to trigger a fatal error ? (the message is not very explicit either...)
(Continue reading)
RSS Feed