Home » Networking » Net_DNS » Bug #8749
Tries to set_blocking on non-existent socket
Details
| Submitted | 2006-09-20 22:05 UTC |
|---|---|
| From | jules-phpbug at killmail dot net |
| Status | No Feedback |
| Package | Net_DNS |
| PHP Version | 5.1.4 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-09-20 22:05 UTC] jules-phpbug at killmail dot net
Description:
------------
Error message is this:
socket_set_blocking() -- pear/Net/DNS/Resolver.php:844
socket_set_blocking(): supplied argument is not a valid stream resource at line 844 in pear/Net/DNS/Resolver.php
Code in question is this:
foreach ($this->nameservers as $nameserver) {
if ($sock[$ctr++] = fsockopen("udp://$nameserver", $this->port)) {
$peerhost[$ctr-1] = $nameserver;
$peerport[$ctr-1] = $this->port;
!!!! ----> socket_set_blocking($sock, false);
} else {
$ctr--;
}
}
Should this be $sock[$ctr-1] instead?
[2006-10-18 04:05 UTC] jules-phpbug at killmail dot net
According to the package page
http://pear.php.net/package/Net_DNS
1.0.0RC4 is indeed the most recent version.
Or is this bug database not beta versions? The last stable version of Net_DNS was released 4 years ago!