xref: /PHP-8.3/ext/snmp/tests/wrong_hostname.phpt (revision b5a14e6c)
1--TEST--
2Wrong hostname
3--CREDITS--
4Boris Lytochkin
5--EXTENSIONS--
6snmp
7--SKIPIF--
8<?php
9require_once(__DIR__.'/skipif.inc');
10?>
11--FILE--
12<?php
13require_once(__DIR__.'/snmp_include.inc');
14
15//EXPECTF format is quickprint OFF
16snmp_set_quick_print(false);
17snmp_set_valueretrieval(SNMP_VALUE_PLAIN);
18
19var_dump(snmpget('192.168..6.1', 'community', '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
20
21?>
22--EXPECTF--
23Warning: snmpget(): php_network_getaddresses:%s in %s on line %d
24bool(false)
25