1--TEST-- 2Generic timeout (wrong community) 3--CREDITS-- 4Boris Lytochkin 5--SKIPIF-- 6<?php 7require_once(dirname(__FILE__).'/skipif.inc'); 8?> 9--FILE-- 10<?php 11require_once(dirname(__FILE__).'/snmp_include.inc'); 12 13//EXPECTF format is quickprint OFF 14snmp_set_quick_print(false); 15snmp_set_valueretrieval(SNMP_VALUE_PLAIN); 16 17var_dump(snmpget($hostname, 'timeout_community_432', '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 18var_dump(snmpget($hostname, 'timeout_community_432', array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries)); 19 20?> 21--EXPECTF-- 22Warning: snmpget(): No response from %s in %s on line %d 23bool(false) 24 25Warning: snmpget(): No response from %s in %s on line %d 26bool(false) 27