mirror of
https://github.com/chinayin/ip2region-core-php.git
synced 2025-12-03 04:02:15 +08:00
commit
7c76c1ddc5
@ -129,7 +129,7 @@ class XdbSearcher
|
|||||||
// read the vector index block
|
// read the vector index block
|
||||||
$buff = $this->read(self::HeaderInfoLength + $idx, 8);
|
$buff = $this->read(self::HeaderInfoLength + $idx, 8);
|
||||||
if ($buff === null) {
|
if ($buff === null) {
|
||||||
throw new \Exception("failed to read vector index at ${idx}");
|
throw new \Exception("failed to read vector index at {$idx}");
|
||||||
}
|
}
|
||||||
|
|
||||||
$sPtr = self::getLong($buff, 0);
|
$sPtr = self::getLong($buff, 0);
|
||||||
@ -150,7 +150,7 @@ class XdbSearcher
|
|||||||
// read the segment index
|
// read the segment index
|
||||||
$buff = $this->read($p, self::SegmentIndexSize);
|
$buff = $this->read($p, self::SegmentIndexSize);
|
||||||
if ($buff == null) {
|
if ($buff == null) {
|
||||||
throw new \Exception("failed to read segment index at ${p}");
|
throw new \Exception("failed to read segment index at {$p}");
|
||||||
}
|
}
|
||||||
|
|
||||||
$sip = self::getLong($buff, 0);
|
$sip = self::getLong($buff, 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user