FAQ
Commit: 85d9d85ce27cf46d26b2717a5cfc3b8f917116ef
Author: Boris Lytochkin <lytboris@php.net> Sun, 17 Mar 2013 20:40:15 +0400
Parents: 44197774c02506be626c85ec60889b58c6c0575e
Branches: PHP-5.4 PHP-5.5 master

Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=85d9d85ce27cf46d26b2717a5cfc3b8f917116ef

Log:
more test coverage: missing square bracket error message

Changed paths:
M ext/snmp/tests/ipv6.phpt


Diff:
diff --git a/ext/snmp/tests/ipv6.phpt b/ext/snmp/tests/ipv6.phpt
index 1287941..f5239e1 100644
--- a/ext/snmp/tests/ipv6.phpt
+++ b/ext/snmp/tests/ipv6.phpt
@@ -20,6 +20,10 @@ snmp_set_quick_print(false);
snmp_set_valueretrieval(SNMP_VALUE_PLAIN);

var_dump(snmpget($hostname6_port, $community, '.1.3.6.1.2.1.1.1.0'));
+var_dump(snmpget('[dead:beef::', $community, '.1.3.6.1.2.1.1.1.0'));
?>
--EXPECTF--
%unicode|string%(%d) "%s"
+
+Warning: snmpget(): malformed IPv6 address, closing square bracket missing in %s on line %d
+bool(false)
\ No newline at end of file

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupphp-cvs @
categoriesphp
postedMar 17, '13 at 4:54p
activeMar 17, '13 at 4:54p
posts1
users1
websitephp.net

1 user in discussion

Boris Lytochkin: 1 post

People

Translate

site design / logo © 2019 Grokbase