PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_DNS » Bug #4123

double query in search and no trailing dot for in-addr.arpa.

Details

Submitted2005-04-11 22:39 UTC
Fromm dot reidenbach at everytruckjob dot com
Assignedekilfoil
StatusClosed
PackageNet_DNS
PHP VersionIrrelevant
OSlinux
Roadmaps(Not assigned)

Comments

[2005-04-11 22:39 UTC] m dot reidenbach at everytruckjob dot com

Description:
------------
If the name to be queried in the "search" method does not contain a '.', queries for both "name." and "name" are run with only the one for "name" being checked.

There are also two instances of "in-addr.arpa" that should include a trailing dot.

Reproduce code:
---------------
This patch fixes a few incorrect comments and includes whitespace, spellings, and grammar fixes. The patch also uses "if (strpos($name, '.') === false)" instead of "if (! strlen(strstr($name, '.')))" to check for a name without a dot.
http://www.tuscaloosadesigncompany.com/Resolver.1.diff

Patch for "in-addr.arpa.":
http://www.tuscaloosadesigncompany.com/Resolver.2.diff