Edit report at https://bugs.php.net/bug.php?id=64124&edit=1

 ID:                 64124
 Updated by:         johan...@php.net
 Reported by:        andy at root dot lu
 Summary:            IPv6 malformed
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            SNMP related
 Operating System:   Debian Squeeze
 PHP Version:        5.4.11
 Block user comment: N
 Private report:     N

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.4-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

Works for me (Warning: snmpget(): Invalid object identifier: something in - on 
line 3) and code looks correct, too.


Previous Comments:
------------------------------------------------------------------------
[2013-02-01 10:10:25] andy at root dot lu

Description:
------------
The following straightforward code throws the following warning:

PHP Warning:  snmpget(): mailformed IPv6 address, closing square bracket missing

$ip = "[2001:abc:dead:beef::22]";
$test = snmpget($ip, "mycommunity", "something");

Clearly, there is no missing closing bracket. The IPv6 address is working.

Also, the warning has a typo. It should say malformed instead of mailformed :-)

Test script:
---------------
$ip = "[2001:abc:dead:beef::22]";
$test = snmpget($ip, "mycommunity", "something");



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



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64124&edit=1

Reply via email to