File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / snmp / tests / bug64159.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:01 2013 UTC (11 years, 3 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

--TEST--                                 
Bug #64159: Truncated snmpget
--CREDITS--
Boris Lytochkin
--SKIPIF--
<?php
require_once(dirname(__FILE__).'/skipif.inc');
?>
--ENV--
MIBS=noneXistent
--FILE--
<?php
require_once(dirname(__FILE__).'/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)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>