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 #6927

Resolver timeout because of unreadable resolv.conf

Details

Submitted2006-02-24 17:44 UTC
Fromphp at holtsmark dot no
Assignedbate
StatusClosed
PackageNet_DNS
PHP Version5.1.2
OSLinux
Roadmaps(Not assigned)

Comments

[2006-02-24 17:44 UTC] php at holtsmark dot no

Description:
------------
I have limited php with include_path and open_basedir.

The file /etc/resolv.conf is a symlink to /etc/resolvconf/run/resolv.conf which is not allowed by my include_path or open_basedir.

So, php sees the file and thinks that it is readable, but since it's not, read_config() will go into a loop on line 325:

while(! feof($f)) {

If you just put a test like:
if ($f) while(! feof($f) {

it will not do the loop. (Worked for me)