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