From 720b28c587380408df190fd52803a70fad5bd508 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 19:41:42 +0000 Subject: [PATCH 1/2] Bump tests/data from `86095bd` to `7ef0ff7` Bumps [tests/data](https://github.com/maxmind/MaxMind-DB) from `86095bd` to `7ef0ff7`. - [Commits](https://github.com/maxmind/MaxMind-DB/compare/86095bd9855d6313c501fe0097891a3c6734ae90...7ef0ff7a28a05d08020fe1a7d9902d2b71f8bc1b) --- updated-dependencies: - dependency-name: tests/data dependency-version: 7ef0ff7a28a05d08020fe1a7d9902d2b71f8bc1b dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- tests/data | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/data b/tests/data index 86095bd..7ef0ff7 160000 --- a/tests/data +++ b/tests/data @@ -1 +1 @@ -Subproject commit 86095bd9855d6313c501fe0097891a3c6734ae90 +Subproject commit 7ef0ff7a28a05d08020fe1a7d9902d2b71f8bc1b From d78bd428c8d8e9a6164b7ff4cfdc5fe6b4f9571f Mon Sep 17 00:00:00 2001 From: William Storey Date: Wed, 5 Aug 2026 20:04:23 +0000 Subject: [PATCH 2/2] Expect ::/64 from the no-IPv4-search-tree database The database stores its single record as the string form of that record's own network. MaxMind-DB regenerated the test databases with its Go writer, which renders the network as ::/64 where the previous Perl writer produced ::0/64. Co-Authored-By: Claude Opus 5 (1M context) --- tests/MaxMind/Db/Test/ReaderTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/MaxMind/Db/Test/ReaderTest.php b/tests/MaxMind/Db/Test/ReaderTest.php index 47cf419..ab24b40 100644 --- a/tests/MaxMind/Db/Test/ReaderTest.php +++ b/tests/MaxMind/Db/Test/ReaderTest.php @@ -140,8 +140,8 @@ public function testNoIpV4SearchTree(): void $reader = new Reader( 'tests/data/test-data/MaxMind-DB-no-ipv4-search-tree.mmdb' ); - $this->assertSame('::0/64', $reader->get('1.1.1.1')); - $this->assertSame('::0/64', $reader->get('192.1.1.1')); + $this->assertSame('::/64', $reader->get('1.1.1.1')); + $this->assertSame('::/64', $reader->get('192.1.1.1')); } public function testGetWithPrefixLen(): void @@ -218,19 +218,19 @@ public function testGetWithPrefixLen(): void 'ip' => '200.0.2.1', 'dbFile' => 'MaxMind-DB-no-ipv4-search-tree.mmdb', 'expectedPrefixLength' => 0, - 'expectedRecord' => '::0/64', + 'expectedRecord' => '::/64', ], [ 'ip' => '::200.0.2.1', 'dbFile' => 'MaxMind-DB-no-ipv4-search-tree.mmdb', 'expectedPrefixLength' => 64, - 'expectedRecord' => '::0/64', + 'expectedRecord' => '::/64', ], [ 'ip' => '0:0:0:0:ffff:ffff:ffff:ffff', 'dbFile' => 'MaxMind-DB-no-ipv4-search-tree.mmdb', 'expectedPrefixLength' => 64, - 'expectedRecord' => '::0/64', + 'expectedRecord' => '::/64', ], [ 'ip' => 'ef00::',