xref: /PHP-5.6/ext/snmp/tests/bug64159.phpt (revision 7457867b)
1--TEST--
2Bug #64159: Truncated snmpget
3--CREDITS--
4Boris Lytochkin
5--SKIPIF--
6<?php
7require_once(dirname(__FILE__).'/skipif.inc');
8?>
9--ENV--
10MIBS=noneXistent
11--FILE--
12<?php
13require_once(dirname(__FILE__).'/snmp_include.inc');
14
15snmp_set_quick_print(false);
16snmp_set_valueretrieval(SNMP_VALUE_LIBRARY);
17
18var_dump(("ab8283f948419b2d24d22f44a80b17d3" === md5(snmpget($hostname, $community, '.1.3.6.1.4.1.2021.8.1.101.1'))));
19
20?>
21--EXPECTF--
22MIB search path: %s
23Cannot find module (noneXistent): At line %d in (%s)
24bool(true)
25