Edit report at http://pear.php.net/bugs/bug.php?id=18557&edit=1
ID: 18557
Updated by: admin@de-korte.org
Reported By: admin at de-korte dot org
Summary: Error parsing /etc/resolv.conf containing comment
lines
-Status: Open
+Status: Duplicate
Type: Bug
Package: Net_DNS2
Operating System: Linux
Package Version: 1.1.1
PHP Version: 5.3.6
Roadmap Versions:
New Comment:
-Status: Open
+Status: Duplicate
Previous Comments:
------------------------------------------------------------------------
[2011-05-19 18:48:17] adkorte
Description:
------------
When the /etc/resolv.conf file contains comment lines and/or lines
without spaces, an error is logged:
PHP ERROR: Undefined offset: 1 [pid 19995 on line 309 of
"/usr/share/php5/PEAR/Net/DNS2.php"]
It would be better to just skip the comment lines.
------------------------------------------------------------------------