cvs: pear /Net_DNS/DNS Resolver.php
| From: | Eric Kilfoil | Date: | Fri, 08 Apr 2005 01:56:27 +0000 |
| Subject: | cvs: pear /Net_DNS/DNS Resolver.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-31040@lists.php.net to get a copy of this message | ||
ekilfoil Thu Apr 7 21:56:27 2005 EDT
Modified files:
/pear/Net_DNS/DNS Resolver.php
Log:
Fixed bug #2359 - user submitted patch from cmoulin at simplerezo dot com
http://cvs.php.net/diff.php/pear/Net_DNS/DNS/Resolver.php?r1=1.19&r2=1.20&ty=u
Index: pear/Net_DNS/DNS/Resolver.php
diff -u pear/Net_DNS/DNS/Resolver.php:1.19 pear/Net_DNS/DNS/Resolver.php:1.20
--- pear/Net_DNS/DNS/Resolver.php:1.19 Thu Feb 26 21:59:55 2004
+++ pear/Net_DNS/DNS/Resolver.php Thu Apr 7 21:56:24 2005
@@ -315,9 +315,9 @@
$this->read_env();
- if (!strlen($this->domain) && strlen($this->searchlist)) {
- $this->default{'domain'} = $this->default{'searchlist'}[0];
- } else if (! strlen($this->searchlist) && strlen($this->domain)) {
+ if (!strlen($this->domain) && sizeof($this->searchlist)) {
+ $this->domain = $this->searchlist[0];
+ } else if (! sizeof($this->searchlist) && strlen($this->domain)) {
$this->searchlist = array($this->domain);
}
error_reporting($err);