[Xapian-discuss] Search::Xapian::PostingIterator broken in 0.9.6?

Olly Betts olly at survex.com
Tue Nov 7 15:28:10 GMT 2006


On Tue, Nov 07, 2006 at 02:45:08PM +0100, Marcus Ramberg wrote:
> I'm having some trouble with the PostingIterator in the latest cpan  
> release of Search::Xapian. The offending code is two calls to isa  
> formed like this
> isa($other,'Search::XapianPostingIterator');
> 
> They die with an autoloader error about not finding isa. They do  
> however seem to work fine if rewritten like this:
> 
> $other->isa('Search::Xapian::PostingIterator');

I copied this code from some Alex wrote in Xapian/PositionIterator.pm,
but failed to copy this line at the top:

use UNIVERSAL qw( isa );

So adding that seems a better fix, if only for consistency within the
code.

Do you have a simple testcase for this?

Cheers,
    Olly



More information about the Xapian-discuss mailing list