Subject: | warnings due to uninitalized values |
We're seeing a couple of warning due to uninitalized values. Out of
millions of queries the warnings are less than 100/day.
All points to only three variables which are set in line 566
my ($status, $ver, $len ) = unpack("n2N", $header);
In our local copy I added
unless ( defined $status ){
$self->_Error("read failed: $!");
return 0;
}
It's just an annoyance. Thanks for creating and maintaining Sphinx::Search!
77 Use of uninitialized value $ver in right bitshift (>>) at
...//Sphinx/Search.pm line 607.
77 Use of uninitialized value $ver in numeric lt (<) at
...//Sphinx/Search.pm line 606.
77 Use of uninitialized value $ver in bitwise and (&) at
...//Sphinx/Search.pm line 607.
77 Use of uninitialized value $status in numeric ne (!=) at
...//Sphinx/Search.pm line 600.
77 Use of uninitialized value $status in numeric eq (==) at
...//Sphinx/Search.pm line 596.
77 Use of uninitialized value $status in numeric eq (==) at
...//Sphinx/Search.pm line 592.
77 Use of uninitialized value $status in numeric eq (==) at
...//Sphinx/Search.pm line 587.
77 Use of uninitialized value $len in numeric ne (!=) at
...//Sphinx/Search.pm line 579.