From 6938ff46141865e3f53be61d11bba5ee2155490c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 29 Nov 2016 06:49:21 +0100 Subject: php-pear-Net-DNS2: 1.4.2 --- Net_DNS2-php7.patch | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Net_DNS2-php7.patch (limited to 'Net_DNS2-php7.patch') diff --git a/Net_DNS2-php7.patch b/Net_DNS2-php7.patch new file mode 100644 index 0000000..5c8bb32 --- /dev/null +++ b/Net_DNS2-php7.patch @@ -0,0 +1,70 @@ +From 7a0e8ab3727c5f52bdf9dfb3ec0fe154ca4e699a Mon Sep 17 00:00:00 2001 +From: Mike Pultz +Date: Mon, 28 Nov 2016 19:30:44 -0500 +Subject: [PATCH] - fixed a couple cases in NSAP.php where I was comparing a + string to a integer - trunk is now v1.4.3 + +--- + Net/DNS2.php | 2 +- + Net/DNS2/RR/NSAP.php | 6 +++--- + composer.json | 4 ++-- + tests/Net_DNS2_DNSSECTest.php | 2 +- + 4 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/Net/DNS2.php b/Net/DNS2.php +index 672e1cb..093ecb0 100644 +--- a/Net/DNS2.php ++++ b/Net/DNS2.php +@@ -72,7 +72,7 @@ class Net_DNS2 + /* + * the current version of this library + */ +- const VERSION = '1.4.2'; ++ const VERSION = '1.4.3'; + + /* + * the default path to a resolv.conf file +diff --git a/Net/DNS2/RR/NSAP.php b/Net/DNS2/RR/NSAP.php +index b2b433a..b9d8a85 100644 +--- a/Net/DNS2/RR/NSAP.php ++++ b/Net/DNS2/RR/NSAP.php +@@ -130,7 +130,7 @@ protected function rrFromString(array $rdata) + // + // make sure the afi value is 47 + // +- if ($x['afi'] == 47) { ++ if ($x['afi'] == '47') { + + $this->afi = '0x' . $x['afi']; + $this->idi = $x['idi']; +@@ -169,7 +169,7 @@ protected function rrSet(Net_DNS2_Packet &$packet) + // + // we only support AFI 47- there arent' any others defined. + // +- if ($this->afi == 47) { ++ if ($this->afi == '47') { + + // + // unpack the rest of the values +@@ -212,7 +212,7 @@ protected function rrSet(Net_DNS2_Packet &$packet) + */ + protected function rrGet(Net_DNS2_Packet &$packet) + { +- if ($this->afi == 0x47) { ++ if ($this->afi == '0x47') { + + // + // build the aa field +diff --git a/tests/Net_DNS2_DNSSECTest.php b/tests/Net_DNS2_DNSSECTest.php +index 027d614..f9febfa 100644 +--- a/tests/Net_DNS2_DNSSECTest.php ++++ b/tests/Net_DNS2_DNSSECTest.php +@@ -80,7 +80,7 @@ public function testDNSSEC() + $r->dnssec = true; + + $result = $r->query('org', 'SOA', 'IN'); +-print_r($result); ++ + $this->assertTrue(($result->header->ad == 1)); + $this->assertTrue(($result->additional[0] instanceof Net_DNS2_RR_OPT)); + $this->assertTrue(($result->additional[0]->do == 1)); -- cgit