FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18553&edit=1

ID: 18553
Updated by: admin@de-korte.org
Reported By: admin at de-korte dot org
Summary: Fails to parse /etc/resolv.conf file with comments
Status: Open
Type: Bug
Package: Net_DNS2
-Operating System: openSUSE
+Operating System: Linux
Package Version: 1.1.1
PHP Version: 5.3.6
Roadmap Versions:
New Comment:

-Operating System: openSUSE
+Operating System: Linux
Sorry about the duplicates... :-(


Previous Comments:
------------------------------------------------------------------------

[2011-05-19 11:11:47] adkorte

Description:
------------
The /etc/resolv.conf file on my system is generated automatically and
contains several lines which start with a '#' character (comment lines).
This results in many errors being logged, since some contain only a '#'
character:

PHP ERROR: Undefined offset: 1 [pid 19394 on line 309 of
"/usr/share/php5/PEAR/Net/DNS2.php"

It would be useful to strip lines starting with '#' before parsing them.

------------------------------------------------------------------------

Search Discussions

  • Mike at May 19, 2011 at 11:15 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=18553&edit=1

    ID: 18553
    Updated by: mike@mrhost.ca
    Reported By: admin at de-korte dot org
    Summary: Fails to parse /etc/resolv.conf file with comments
    -Status: Open
    +Status: Closed
    Type: Bug
    Package: Net_DNS2
    Operating System: Linux
    Package Version: 1.1.1
    PHP Version: 5.3.6
    -Assigned To:
    +Assigned To: mikepultz
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: mikepultz
    This bug has been fixed in SVN.

    If this was a documentation problem, the fix will appear on pear.php.net
    by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.

    Thanks for the feedback-

    I've made a fix, and checked it into SVN

    http://code.google.com/p/netdns2/source/detail?r=101

    You can either grab a copy from trunk, patch your files (one file) using
    the data
    above, or just hold out for the next release.

    Mike


    Previous Comments:
    ------------------------------------------------------------------------

    [2011-05-19 18:54:07] adkorte

    -Operating System: openSUSE
    +Operating System: Linux
    Sorry about the duplicates... :-(

    ------------------------------------------------------------------------

    [2011-05-19 11:11:47] adkorte

    Description:
    ------------
    The /etc/resolv.conf file on my system is generated automatically and
    contains several lines which start with a '#' character (comment lines).
    This results in many errors being logged, since some contain only a '#'
    character:

    PHP ERROR: Undefined offset: 1 [pid 19394 on line 309 of
    "/usr/share/php5/PEAR/Net/DNS2.php"

    It would be useful to strip lines starting with '#' before parsing them.

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 19, '11 at 5:54p
activeMay 19, '11 at 11:15p
posts2
users2
websitepear.php.net

2 users in discussion

Mike: 1 post Admin: 1 post

People

Translate

site design / logo © 2022 Grokbase