mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
25 lines
502 B
PHP
25 lines
502 B
PHP
--TEST--
|
|
Bug #64159: Truncated snmpget
|
|
--CREDITS--
|
|
Boris Lytochkin
|
|
--SKIPIF--
|
|
<?php
|
|
require_once(__DIR__.'/skipif.inc');
|
|
?>
|
|
--ENV--
|
|
MIBS=noneXistent
|
|
--FILE--
|
|
<?php
|
|
require_once(__DIR__.'/snmp_include.inc');
|
|
|
|
snmp_set_quick_print(false);
|
|
snmp_set_valueretrieval(SNMP_VALUE_LIBRARY);
|
|
|
|
var_dump(("ab8283f948419b2d24d22f44a80b17d3" === md5(snmpget($hostname, $community, '.1.3.6.1.4.1.2021.8.1.101.1'))));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
MIB search path: %s
|
|
Cannot find module (noneXistent): At line %d in (%s)
|
|
bool(true)
|