mirror of
https://github.com/chinayin/ip2region-core-php.git
synced 2025-12-02 19:42:48 +08:00
commit
7c76c1ddc5
@ -129,7 +129,7 @@ class XdbSearcher
|
||||
// read the vector index block
|
||||
$buff = $this->read(self::HeaderInfoLength + $idx, 8);
|
||||
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);
|
||||
@ -150,7 +150,7 @@ class XdbSearcher
|
||||
// read the segment index
|
||||
$buff = $this->read($p, self::SegmentIndexSize);
|
||||
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user