Skip to content

Releases: mikepultz/netdns2

v1.5.4

01 Oct 05:46
Compare
Choose a tag to compare
  • fixed a bug in Names::unpack() in v1.5.3 with multi-line TXT records that might happen to have a trailing period before the line break.
  • fixed a typo in Socket::read() when checking the error condition; I was checking against the wrong value.
  • cleaned up some docblocks with incorrect or inconsistent type defitions.

v1.5.3

28 Nov 19:30
Compare
Choose a tag to compare
  • added the ZONEMD resource record type.
  • added a new PHPUnit file to test the file cache.
  • added a new PHPUnit file to do real-time checks against a public internal server.
  • muted errors from stream_select(); it's safe to mute them since the error condition is handled.
  • double checked the class index exists first in Net_DNS2_RR::parse() before using it.
  • added a typehint for Net_DNS::$last_exception in the comments so PHPStorm doesn't complain.
  • added a quick check to confirm all the DNS servers are IP addresses.
  • cleaned up the logic around binding to a local host and/or port; some cases wouldn't have worked correctly.
  • PHP 8.0 issue: shmop_close() is deprecated in PHP 8.
  • PHP 8.0 issue: strlen() generates an error if you pass in null; there's a few placing the code that wasn't testing for this first.
  • PHP 8.0 issue: fread() throws an exception now if you set the length to 0; so I have to check the filesize() first before reading.
  • PHP 8.1 issue: passing null to preg_split() generates an error; there were three cases where it was possible.

v1.5.2

11 Oct 17:34
Compare
Choose a tag to compare
  • fixed a mistake in the autoload section of the composer.json file.

v1.5.0

08 Oct 15:22
Compare
Choose a tag to compare
  • added the AMTRELAY resource record type (RFC 8777).
  • added Net_DNS2_RR::asArray(), which returns the same values as __toString(), but as an array for easier access.
  • added Net_DNS2::closeSockets(), which lets you close all cached network sockets in the resolver object.
  • added Net_DNS2::getSockets(), which returns the local sockets cache array.
  • added date_created and date_last_used to the Net_DNS2_Socket object, to track usage stats on each socket object.
  • added the SHA256, SHA384, and GOST digest defines to Lookups.php.
  • dropped the Net_DNS2_Socket_Sockets, and switch to just using the streams code. There's no speed difference anymore.
  • fixed a bug in Net_DNS2_Packet::compress() and Net_DNS2_Packet::expand() related to dot literals in compressed names.
  • fixed a display issue in the IPSECKEY RR when displaying hostname / domain names in the gateway field.
  • fixed a couple inconsistencies in the docs.
  • fixed a PHP 7.4 bug in Sockets.php; accessing a null value as an array throws an exception now.
  • fixed Net_DNS2_RR_DS so it will be able to support other digest definitions without any other changes.
  • the Net_DNS2_RR_NIMLOC class was incorrectly named Net_DNS2_RR_NIMLOCK.
  • Net_DNS2_PrivateKey was using the wrong member variable name for the key_format value.
  • changed all references to array() to [].
  • removed all sorts of license noise from the files.
  • updated the test cases to use PHPUnit v9+.

v1.4.4

13 Feb 03:09
Compare
Choose a tag to compare
  • bugfix when returning an empty bitmap-type in BitMap.php - patch from BugMaster510945.
  • added the BIND 9 private record RR (TYPE65534) - patch from BugMaster510945.
  • added DNSSEC algorithms 13-16 (ECDSAP256SHA256, ECDSAP384SHA384, ED25519, and ED448).
  • added SSHFP algoritm ED25519.
  • modified Net_DNS2::sendPacket() to use current()/next() rather than the deprecated each() (deprecated in 7.2).

v1.4.3

07 Mar 04:44
Compare
Choose a tag to compare
  • fixed an issue when looking up . or com., when using the strict_query_mode flag.
  • fixed a bug in the caching logic where I was loading the content more than once per instance, when really I only need to do it once.
  • changed the Net_DNS2::sock array to use the SOCK_DGRAM and SOCK_STREAM defines, rather than the strings 'tcp' or 'udp'.
  • fixed a bug in the Net_DNS2_Header and Net_DNS2_Question classes, where I was using the wrong bit-shift operators when parsing some of the values. This only became apparent when somebody was trying to use the CAA class (id 257); it was causing this to roll over to the next 8 bit value, and returning 1 (RR A) instead of the CAA class.
  • fixed a bug that occurs when a DNS lookup request times out, and then the same class is reused for a subsequent request. Because I'm caching the sockets, the timed out data could eventually come in, and end up being seen as the result for a subsequent lookup.
  • fixed a couple cases in NSAP.php where I was comparing a string to an integer.

v1.4.2

23 Aug 04:03
Compare
Choose a tag to compare
- release 1.4.2

v1.4.1

15 May 01:53
Compare
Choose a tag to compare
- updated PEAR package files for release.

v1.4.0

22 Mar 23:14
Compare
Choose a tag to compare
added a readme file