[Xapian-discuss] PHP functions in Ubuntu packages

Olly Betts olly at survex.com
Mon Nov 20 06:04:35 GMT 2006


On Sun, Nov 19, 2006 at 04:46:53AM -0500, Francis Irving wrote:
> It nearly worked on the file I tested it on, but gave these errors.
> 
> $ cat xapian.module | xapian-php-update >out
> Use of uninitialized value in concatenation (.) or string at
> /usr/local/bin/xapian-php-update line 22, <> line 18.

Actually, all these warnings are harmless - the output is as
intended.  The issue is that one of the regex groupings is
conditionalised, so you get this warning for any method which doesn't
have parameters (after the change).

Anyway, it's distracting and might hide actual problems, so I've tweaked
the code to fix this warning.  It'll probably run a bit slower now, but
I doubt by enough to matter given its purpose.  Also, I've added a
copyright and licence notice:

http://www.oligarchy.co.uk/xapian/patches/xapian-php-update

>   # XXX will want more than 100 here! See mset_get_matches_estimated in
>   # searchengine.php from TWFY for code to work out set result sizes
>   $matches = Enquire_get_mset($enquire, 0, 100); 

I suspect you might want to look at the "check_at_least" parameter to
Enquire::get_mset()...

Cheers,
    Olly



More information about the Xapian-discuss mailing list