Skip to content

Commit 5f637f2

Browse files
committed
Fix the IP lookup issue for DB24
1 parent 5431cec commit 5f637f2

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
Revision History for PHP Module for IP2Location
2+
7.2.5 Fri Jun 10 15:40:23 2016
3+
* Fixes:
4+
5+
- Fix the IP lookup issue for DB24
26

37
7.2.4 Wed Jan 06 14:44:23 2016
48
* Fixes:

IP2Location.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Database {
3232
*
3333
* @var string
3434
*/
35-
const VERSION = '7.2.4';
35+
const VERSION = '7.2.5';
3636

3737
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3838
// Error field constants ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -741,7 +741,7 @@ public function __construct($file = null, $mode = self::FILE_IO, $defaultFields
741741
$this->date = date('Y-m-d', strtotime("{$year}-{$month}-{$day}"));
742742
//
743743
$this->ipCount[4] = $this->readWord(6);
744-
$this->ipBase[4] = $this->readByte(10);
744+
$this->ipBase[4] = $this->readWord(10);
745745
$this->ipCount[6] = $this->readWord(14);
746746
$this->ipBase[6] = $this->readWord(18);
747747
}

0 commit comments

Comments
 (0)