PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_DNS » Bug #8749

Tries to set_blocking on non-existent socket

Details

Submitted2006-09-20 22:05 UTC
Fromjules-phpbug at killmail dot net
StatusNo Feedback
PackageNet_DNS
PHP Version5.1.4
OSLinux
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!