cvs: pear /Net_DNS/DNS Packet.php
| From: | Tomas V.V.Cox | Date: | Wed, 06 Apr 2005 14:03:38 +0000 |
| Subject: | cvs: pear /Net_DNS/DNS Packet.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-30976@lists.php.net to get a copy of this message | ||
cox Wed Apr 6 10:03:38 2005 EDT
Modified files:
/pear/Net_DNS/DNS Packet.php
Log:
Match perl code (bug happens with BIND8 as caching nameserver)
http://cvs.php.net/diff.php/pear/Net_DNS/DNS/Packet.php?r1=1.15&r2=1.16&ty=u
Index: pear/Net_DNS/DNS/Packet.php
diff -u pear/Net_DNS/DNS/Packet.php:1.15 pear/Net_DNS/DNS/Packet.php:1.16
--- pear/Net_DNS/DNS/Packet.php:1.15 Wed Apr 6 09:46:27 2005
+++ pear/Net_DNS/DNS/Packet.php Wed Apr 6 10:03:38 2005
@@ -538,7 +538,7 @@
function parse_rr($data, $offset)
{
list($name, $offset) = $this->dn_expand($data, $offset);
- if (! strlen($name)) {
+ if ($name === NULL) {
return(array(NULL, NULL));
}