Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 25 of 71) sorted by relevance

123

/PHP-8.0/ext/snmp/tests/
H A Dsnmp2_set.phpt20 $z = snmp2_set($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0', $timeout, $retries);
36 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries);
39 $oldvalue2 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries);
43 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries);
45 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1));
47 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries);
49 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
54 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1));
55 var_dump((snmpget($hostname, $communityWrite, $oid2, $timeout, $retries) === $newvalue2));
62 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
[all …]
H A Dsnmpset.phpt20 $z = snmpset($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0', $timeout, $retries);
36 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries);
39 $oldvalue2 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries);
43 $z = snmpset($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries);
45 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1));
46 $z = snmpset($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries);
48 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
53 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1));
54 var_dump((snmpget($hostname, $communityWrite, $oid2, $timeout, $retries) === $newvalue2));
57 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
[all …]
H A Dbug60749.phpt2 Bug #60749: SNMP module should not strip non-standard SNMP port from hostname
13 $hostname = "php.net";
14 $ip = gethostbyname($hostname);
16 echo "Could not resolve $hostname properly!\n";
20 $session = new SNMP(SNMP::VERSION_1, "$hostname:$port", $community, $timeout, $retries);
22 if (strcmp($info["hostname"], "$ip:$port") !== 0) {
23 echo "'" . $info["hostname"] . "' != '$ip:$port'\n";
H A Dsnmp2_set-nomib.phpt21 $z = snmp2_set($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retri…
25 $z = snmp2_set($hostname, $communityWrite, '.1.3.6...777.888.999.444.0', 's', 'bbb', $timeout, $ret…
30 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries);
34 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries);
36 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1));
37 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries);
39 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
H A Dsnmpset-nomib.phpt21 $z = snmpset($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retries…
25 $z = snmpset($hostname, $communityWrite, '.1.3...6.777.888.999.444.0', 's', 'bbb', $timeout, $retri…
31 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries);
35 $z = snmpset($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries);
37 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1));
38 $z = snmpset($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries);
40 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
H A Dsnmpget.phpt19 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0'));
21 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout));
23 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
25 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries));
27 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeout…
31 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1..1.1.0', $timeout, $retries));
33 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1...1.1.0'), $timeout, $retries));
35 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1...1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeo…
39 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.110', $timeout, $retries));
41 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.110'), $timeout, $retries));
[all …]
H A Dsnmp3.phpt20 var_dump(snmp3_get($hostname, $user_noauth, 'noAuthNoPriv', '', '', '', '', '.1.3.6.1.2.1.1.1.0', $…
35 var_dump(snmp3_getnext($hostname, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1…
38 $z = snmp3_walk($hostname, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1.1.0'…
44 $z = snmp3_real_walk($hostname, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1…
50 $z = snmp3_walk($hostname, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1', $t…
57 $z = snmp3_real_walk($hostname, $username, 'authNoPriv', 'MD5', $auth_pass, 'AES', '', '.1.3.6.1.2.…
65 $oldvalue1 = snmp3_get($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1,…
68 $z = snmp3_set($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, 's', $n…
70 var_dump((snmp3_get($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, $t…
71 $z = snmp3_set($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, 's', $o…
[all …]
H A Dsnmp3-error.phpt20 var_dump(snmp3_get($hostname, $community, '', '', '', '', '', '.1.3.6.1.2.1.1.1.0'));
25 var_dump(snmp3_get($hostname, $community, 'bugusPriv', '', '', '', '', '.1.3.6.1.2.1.1.1.0'));
30 … var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'TTT', '', '', '', '.1.3.6.1.2.1.1.1.0'));
35 var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'MD5', '', '', '', '.1.3.6.1.2.1.1.1.0'));
36 var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'MD5', 'te', '', '', '.1.3.6.1.2.1.1.1.0'));
39 …var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'BBB', '', '.1.3.6.1.2.1.…
44 var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'AES', '', '.1.3.6.1.2.1.1…
45 var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'AES', 'ty', '.1.3.6.1.2.1…
46 var_dump(snmp3_get($hostname, 'somebogususer', 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, '.…
48 var_dump(snmp3_set($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, '.1.3.6.77…
[all …]
H A Dsnmp2_get.phpt20 var_dump(snmp2_get($hostname, $community, array(), $timeout, $retries));
27 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
29 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries));
31 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeo…
35 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2..1.1.1.0', $timeout, $retries));
37 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1...1.1.0'), $timeout, $retries));
39 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1...1.1.0', '.1.3.6.1.2.1.1.3.0'), $tim…
43 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.110', $timeout, $retries));
45 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.110'), $timeout, $retries));
47 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.220'), $tim…
H A Dsnmp_getvalue.phpt18 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
22 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
26 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries);
33 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries);
40 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.88.1.4.2.1.3.6.95.115.110.109.112.100.95.108.105.…
47 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.88.1.4.2.1.3.6.95.115.110.109.112.100.95.108.105.…
56 var_dump(count(snmp2_walk($hostname, $community, '.', $timeout, $retries)));
H A Dsnmp2_walk.phpt19 $return = snmp2_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries);
27 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries);
32 $return = snmpwalk($hostname, $community, '', $timeout, $retries);
38 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries);
42 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries);
46 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retri…
48 $return = snmp2_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retri…
52 $return = snmp2_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
H A Dsnmpwalk.phpt19 $return = snmpwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries);
27 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries);
32 $return = snmpwalk($hostname, $community, '', $timeout, $retries);
38 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries);
42 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries);
46 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries…
48 $return = snmpwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries…
52 $return = snmpwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
H A Dsnmp2_real_walk.phpt19 $return = snmp2_real_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries);
26 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries);
34 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retr…
38 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $…
40 $return = snmp2_real_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $…
44 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retr…
H A Dsnmprealwalk.phpt19 $return = snmprealwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries);
26 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries);
34 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries…
38 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $ret…
40 $return = snmprealwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $ret…
44 $return = snmprealwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries…
H A Dsnmp-object-error.phpt18 var_dump(new SNMP(SNMP::VERSION_1, $hostname));
23 var_dump(new SNMP(SNMP::VERSION_1, $hostname, $community, ''));
28 var_dump(new SNMP(SNMP::VERSION_1, $hostname, $community, $timeout, ''));
33 var_dump(new SNMP(7, $hostname, $community));
39 $session = new SNMP(SNMP::VERSION_3, $hostname, $user_noauth, $timeout, $retries);
56 $session = new SNMP(SNMP::VERSION_3, $hostname, $user_noauth, $timeout, $retries);
73 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
H A Dsnmp2_getnext.phpt18 var_dump(snmp2_getnext($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
20 var_dump(snmp2_getnext($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries));
22 var_dump(snmp2_getnext($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.6.0'), $t…
/PHP-8.0/ext/snmp/
H A Dsnmp.stub.php5 function snmpget(string $hostname, string $community, array|string $object_id, int $timeout = -1, i… argument
7 function snmpgetnext(string $hostname, string $community, array|string $object_id, int $timeout = -… argument
9 function snmpwalk(string $hostname, string $community, array|string $object_id, int $timeout = -1, … argument
11 function snmprealwalk(string $hostname, string $community, array|string $object_id, int $timeout = … argument
29 function snmp2_get(string $hostname, string $community, array|string $object_id, int $timeout = -1,… argument
40 string $hostname, string $security_name, string $security_level, argument
46 string $hostname, string $security_name, string $security_level, argument
52 string $hostname, string $security_name, string $security_level, argument
58 string $hostname, string $security_name, string $security_level, argument
64 string $hostname, string $security_name, string $security_level, argument
[all …]
/PHP-8.0/ext/standard/tests/strings/
H A Ddirname_variation.phpt20 "hostname:/home/user/bar.tar",
21 "hostname:/home/user/tbar.gz/",
22 "hostname:/home/user/My Pics.gz",
23 "hostname:/home/user/My Pics.gz/",
24 "hostname:/home/user/My Pics/",
25 "hostname:/home/user/My Pics",
82 string\(19\) "hostname:(\\|\/)home(\\|\/)user"
85 string\(19\) "hostname:(\\|\/)home(\\|\/)user"
88 string\(19\) "hostname:(\\|\/)home(\\|\/)user"
91 string\(19\) "hostname:(\\|\/)home(\\|\/)user"
[all …]
H A Dbasename_variation.phpt20 array("hostname:/home/usr/bar.tar"),
21 array("hostname:/home/user/bar.tar", "home"),
22 array("hostname:/home/user/tbar.gz", "bar.gz"),
23 array("hostname:/home/user/tbar.gz", "/bar.gz"),
24 array("hostname:/home/user/tbar.gz", "/bar.gz/"),
25 array("hostname:/home/user/tbar.gz/", "/bar.gz/"),
30 array("hostname:/home/user/My Pics.gz/", ".gz"),
31 array("hostname:/home/user/My Pics.gz/"),
32 array("hostname:/home/user/My Pics.gz/", NULL),
33 array("hostname:/home/user/My Pics.gz/", ' '),
[all …]
/PHP-8.0/ext/standard/tests/network/
H A Dfsockopen_variation1.phpt16 echo "\nCalling fsockopen() without a protocol in the hostname string:\n";
17 $hostname = '127.0.0.1';
18 $client = fsockopen($hostname, $port);
23 $address = $hostname . ':' . $port;
33 Calling fsockopen() without a protocol in the hostname string:
H A Dfsockopen_variation2.phpt6 $hostname = 'udp://127.0.0.1';
10 $server = stream_socket_server($hostname . ':' . $port, $errno, $errstr, STREAM_SERVER_BIND);
13 $client = fsockopen($hostname, $port);
22 $address = $hostname . ':' . $port;
H A Dfsockopen_basic.phpt19 $hostname = 'tcp://127.0.0.1'; // loopback address
25 $client = fsockopen($hostname, $port, $errno, $errstr, $timeout);
30 $second_client = fsockopen($hostname, $port);
35 $address = $hostname . ':' . $port;
/PHP-8.0/ext/standard/
H A Dfsock.c45 char *hostname = NULL; in php_fsockopen_stream() local
69 hostname_len = spprintf(&hostname, 0, "%s:" ZEND_LONG_FMT, host, port); in php_fsockopen_stream()
72 hostname = host; in php_fsockopen_stream()
85 stream = php_stream_xport_create(hostname, hostname_len, REPORT_ERRORS, in php_fsockopen_stream()
89 efree(hostname); in php_fsockopen_stream()
/PHP-8.0/ext/standard/tests/file/
H A Dbasename.phpt73 array("hostname:/home/usr/bar.tar"),
74 array("hostname:/home/user/bar.tar", "home"),
75 array("hostname:/home/user/tbar.gz", "bar.gz"),
76 array("hostname:/home/user/tbar.gz", "/bar.gz"),
77 array("hostname:/home/user/tbar.gz", "/bar.gz/"),
78 array("hostname:/home/user/tbar.gz/", "/bar.gz/"),
83 array("hostname:/home/user/My Pics.gz/", ".gz"),
84 array("hostname:/home/user/My Pics.gz/"),
85 array("hostname:/home/user/My Pics.gz/", NULL),
86 array("hostname:/home/user/My Pics.gz/", ' '),
[all …]
H A Dbasename_variation1.phpt23 "hostname:",
177 basename for path hostname:foo is:
178 string(12) "hostname:foo"
179 basename for path hostname:foo/ is:
180 string(12) "hostname:foo"
181 basename for path hostname:foo\ is:
182 string(13) "hostname:foo\"
184 string(16) "hostname:foo.bar"
186 string(16) "hostname:foo.bar"
188 string(17) "hostname:foo.bar\"
[all …]

Completed in 31 milliseconds

123