Home » Networking » Net_DNS » Bug #6927
Resolver timeout because of unreadable resolv.conf
Details
| Submitted | 2006-02-24 17:44 UTC |
|---|---|
| From | php at holtsmark dot no |
| Assigned | bate |
| Status | Closed |
| Package | Net_DNS |
| PHP Version | 5.1.2 |
| OS | Linux |
| 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)