Professional Web Applications Themes

#23685 [Opn]: fake values returned when OID value is an empty string - PHP Development

ID: 23685 User updated by: s dot zagrodzki at net dot icm dot edu dot pl Reported By: s dot zagrodzki at net dot icm dot edu dot pl Status: Open Bug Type: SNMP related Operating System: Linux 2.2 PHP Version: 4.3.2RC4-dev New Comment: I tried using snmp module from 20030714 snapshot - didn't help. Previous Comments: ------------------------------------------------------------------------ [2003-07-14 02:35:43] s dot zagrodzki at net dot icm dot edu dot pl this is a part of tcpdump of snmpwalk query: .... GetResponse(50) .1.3.6.1.2.1.31.1.1.1.18.3="lacze do Obs. Astr." GetNextRequest(31) .1.3.6.1.2.1.31.1.1.1.18.3 GetResponse(31) .1.3.6.1.2.1.31.1.1.1.18.4="" GetNextRequest(31) .1.3.6.1.2.1.31.1.1.1.18.4 GetResponse(59) .1.3.6.1.2.1.31.1.1.1.18.5=": lacze do Wydz. Zarzadzania" .... as ...

  1. #1

    Default #23685 [Opn]: fake values returned when OID value is an empty string

    ID: 23685
    User updated by: s dot zagrodzki at net dot icm dot edu dot pl
    Reported By: s dot zagrodzki at net dot icm dot edu dot pl
    Status: Open
    Bug Type: SNMP related
    Operating System: Linux 2.2
    PHP Version: 4.3.2RC4-dev
    New Comment:

    I tried using snmp module from 20030714 snapshot - didn't help.


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

    [2003-07-14 02:35:43] s dot zagrodzki at net dot icm dot edu dot pl

    this is a part of tcpdump of snmpwalk query:
    ....
    GetResponse(50) .1.3.6.1.2.1.31.1.1.1.18.3="lacze do Obs. Astr."
    GetNextRequest(31) .1.3.6.1.2.1.31.1.1.1.18.3
    GetResponse(31) .1.3.6.1.2.1.31.1.1.1.18.4=""
    GetNextRequest(31) .1.3.6.1.2.1.31.1.1.1.18.4
    GetResponse(59) .1.3.6.1.2.1.31.1.1.1.18.5=": lacze do Wydz.
    Zarzadzania"
    ....
    as you can see, snmp agent returns empty value, response length is also
    correct. And snmpwalk utility also gives
    correct results.

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

    [2003-07-13 14:49:20] [email]harriephp.net[/email]

    I tried this with other variables (I do not have an
    SNMP agent implementing the ifXTable) and cannot
    reproduce it.

    Therefore I am thinking that it maybe the SNMP agent
    which returns these values and as a result they
    show up in PHP. Could you confirm that this is not a
    problem with the SNMP agent/router.

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

    [2003-07-13 00:11:43] [email]sniperphp.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]

    Some changes have been made lately.


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

    [2003-05-19 04:30:19] s dot zagrodzki at net dot icm dot edu dot pl

    I've copied ext/snmp directory from this snapshot into my php source
    tree (when I tried to compile the snap as it is, it complained about
    too old db3 library). It didn't help.

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

    [2003-05-18 16:57:47] [email]sniperphp.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/23685[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=23685&edit=1[/url]

    s dot zagrodzki at net dot icm dot edu dot pl Guest

  2. #2

    Default #23685 [Opn]: fake values returned when OID value is an empty string

    ID: 23685
    Updated by: [email]harriephp.net[/email]
    Reported By: s dot zagrodzki at net dot icm dot edu dot pl
    Status: Open
    Bug Type: SNMP related
    Operating System: Linux 2.2
    PHP Version: 4.3.2RC4-dev
    New Comment:

    Attempted in various ways, but I cannot reproduce this.
    Maybe it is a Linux problem, since I do PHP development
    on a CYGWIN system.
    Neither do I get the same results as the 'user
    contributed note' on snmpget.


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

    [2003-07-14 09:44:57] s dot zagrodzki at net dot icm dot edu dot pl

    this issue was also mentioned by javierb at gmx dot net in user
    contributed notes to snmpget() function manual:
    [url]http://www.php.net/manual/en/function.snmpget.php[/url]

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

    [2003-07-14 03:38:00] s dot zagrodzki at net dot icm dot edu dot pl

    I tried using snmp module from 20030714 snapshot - didn't help.

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

    [2003-07-14 02:35:43] s dot zagrodzki at net dot icm dot edu dot pl

    this is a part of tcpdump of snmpwalk query:
    ....
    GetResponse(50) .1.3.6.1.2.1.31.1.1.1.18.3="lacze do Obs. Astr."
    GetNextRequest(31) .1.3.6.1.2.1.31.1.1.1.18.3
    GetResponse(31) .1.3.6.1.2.1.31.1.1.1.18.4=""
    GetNextRequest(31) .1.3.6.1.2.1.31.1.1.1.18.4
    GetResponse(59) .1.3.6.1.2.1.31.1.1.1.18.5=": lacze do Wydz.
    Zarzadzania"
    ....
    as you can see, snmp agent returns empty value, response length is also
    correct. And snmpwalk utility also gives
    correct results.

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

    [2003-07-13 14:49:20] [email]harriephp.net[/email]

    I tried this with other variables (I do not have an
    SNMP agent implementing the ifXTable) and cannot
    reproduce it.

    Therefore I am thinking that it maybe the SNMP agent
    which returns these values and as a result they
    show up in PHP. Could you confirm that this is not a
    problem with the SNMP agent/router.

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

    [2003-07-13 00:11:43] [email]sniperphp.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]

    Some changes have been made lately.


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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/23685[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=23685&edit=1[/url]

    harrie@php.net Guest

Similar Threads

  1. #7056 [Com]: Setting string variables to value starting with '<' cause string to be empty.
    By davidgjenkins at ntlworld dot com in forum PHP Development
    Replies: 1
    Last Post: October 27th, 06:54 AM
  2. #23685 [Fbk->Csd]: fake values returned when OID value is an empty string
    By s dot zagrodzki at net dot icm dot edu dot pl in forum PHP Development
    Replies: 0
    Last Post: July 18th, 09:24 AM
  3. Replies: 2
    Last Post: July 16th, 08:58 AM
  4. #23685 [Fbk->Opn]: fake values returned when OID value is an empty string
    By s dot zagrodzki at net dot icm dot edu dot pl in forum PHP Development
    Replies: 1
    Last Post: July 16th, 07:53 AM
  5. Replies: 0
    Last Post: July 13th, 07:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139