xref: /PHP-5.4/ext/snmp/tests/wrong_hostname.phpt (revision f6408176)
1--TEST--
2Wrong hostname
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('192.168..6.1', 'community', '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
18
19?>
20--EXPECTF--
21Warning: snmpget(): php_network_getaddresses:%snot known in %s on line %d
22bool(false)
23