Skip to content

Commit 85d9d85

Browse files
author
Boris Lytochkin
committed
more test coverage: missing square bracket error message
1 parent 4419777 commit 85d9d85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/snmp/tests/ipv6.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ snmp_set_quick_print(false);
2020
snmp_set_valueretrieval(SNMP_VALUE_PLAIN);
2121

2222
var_dump(snmpget($hostname6_port, $community, '.1.3.6.1.2.1.1.1.0'));
23+
var_dump(snmpget('[dead:beef::', $community, '.1.3.6.1.2.1.1.1.0'));
2324
?>
2425
--EXPECTF--
2526
%unicode|string%(%d) "%s"
27+
28+
Warning: snmpget(): malformed IPv6 address, closing square bracket missing in %s on line %d
29+
bool(false)

0 commit comments

Comments
 (0)