Edit report at http://pear.php.net/bugs/bug.php?id=18556&edit=1
ID: 18556
Updated by: admin@de-korte.org
Reported By: admin at de-korte dot org
Summary: Parsing comment lines in /etc/resolv.conf throws an
error
-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 15:58:21] adkorte
Description:
------------
If the /etc/resolv.conf file contains lines consisting of only a '#'
character, parsing them throws the following error:
PHP ERROR: Undefined offset: 1 [pid 17544 on line 309 of
"/usr/share/php5/PEAR/Net/DNS2.php"]
Instead of just skipping empty lines, also lines starting with the '#'
character should be skipped.
The obvious removing these lines from /etc/resolv.conf is not an option,
since this files is generated automatically by openSUSE 11.4.
------------------------------------------------------------------------