/PHP-5.6/ext/snmp/tests/ |
H A D | snmp2_set.phpt | 19 $z = snmp2_set($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0'); 23 $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)); 46 $z = snmp2_set($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)); [all …]
|
H A D | snmpset.phpt | 19 $z = snmpset($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0'); 23 $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)); [all …]
|
H A D | bug60749.phpt | 2 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 D | snmp3-error.phpt | 19 var_dump(snmp3_get($hostname, $community, '', '', '', '', '')); 20 var_dump(snmp3_get($hostname, $community, '', '', '', '', '', '.1.3.6.1.2.1.1.1.0')); 21 var_dump(snmp3_get($hostname, $community, 'bugusPriv', '', '', '', '', '.1.3.6.1.2.1.1.1.0')); 22 var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'TTT', '', '', '', '.1.3.6.1.2.1.1.1.0')); 23 var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'MD5', '', '', '', '.1.3.6.1.2.1.1.1.0')); 24 var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'MD5', 'te', '', '', '.1.3.6.1.2.1.1.1.0')); 25 var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'BBB', '', '.1.3.6.1.2.1.1… 26 var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'AES', '', '.1.3.6.1.2.1.1… 27 var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'AES', 'ty', '.1.3.6.1.2.1… 28 var_dump(snmp3_get($hostname, 'somebogususer', 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, '.… [all …]
|
H A D | snmpget.phpt | 18 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', '')); 19 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')); 25 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout)); 27 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 29 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries)); 31 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… 35 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1..1.1.0', $timeout, $retries)); 37 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1...1.1.0'), $timeout, $retries)); 43 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.110', $timeout, $retries)); [all …]
|
H A D | snmp2_set-nomib.phpt | 23 $z = snmp2_set($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retri… 27 $z = snmp2_set($hostname, $communityWrite, '.1.3.6...777.888.999.444.0', 's', 'bbb', $timeout, $ret… 32 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 36 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 38 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 39 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 41 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
|
H A D | snmpset-nomib.phpt | 23 $z = snmpset($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retries… 27 $z = snmpset($hostname, $communityWrite, '.1.3...6.777.888.999.444.0', 's', 'bbb', $timeout, $retri… 33 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 37 $z = snmpset($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 39 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 40 $z = snmpset($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 42 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
|
H A D | snmp3.phpt | 20 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 D | snmp2_get.phpt | 18 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.0', '')); 19 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, '')); 21 var_dump(snmp2_get($hostname, $community, array(), $timeout, $retries)); 25 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 27 var_dump(snmp2_get($hostname, $community, array('.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', '.1.3.6.1.2.1.1.3.0'), $timeo… 33 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2..1.1.1.0', $timeout, $retries)); 35 var_dump(snmp2_get($hostname, $community, array('.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', '.1.3.6.1.2.1.1.3.0'), $tim… 41 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.110', $timeout, $retries)); [all …]
|
H A D | snmp2_walk.phpt | 18 var_dump(snmp2_walk($hostname, $community, '.1.3.6.1.2.1.1', '')); 19 var_dump(snmp2_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, '')); 23 $return = snmp2_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 31 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 36 $return = snmpwalk($hostname, $community, '', $timeout, $retries); 42 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries); 46 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries); 50 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retri… 52 $return = snmp2_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retri… 56 $return = snmp2_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
|
H A D | snmpwalk.phpt | 18 var_dump(snmpwalk($hostname, $community, '.1.3.6.1.2.1.1', '')); 19 var_dump(snmpwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, '')); 23 $return = snmpwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 31 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 36 $return = snmpwalk($hostname, $community, '', $timeout, $retries); 42 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries); 46 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries); 50 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries… 52 $return = snmpwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries… 56 $return = snmpwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
|
H A D | snmprealwalk.phpt | 18 var_dump(snmprealwalk($hostname, $community, '.1.3.6.1.2.1.1', '')); 19 var_dump(snmprealwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, '')); 23 $return = snmprealwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 30 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 38 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries… 42 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $ret… 44 $return = snmprealwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $ret… 48 $return = snmprealwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries…
|
H A D | snmp_getvalue.phpt | 18 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 D | snmp2_real_walk.phpt | 18 var_dump(snmp2_real_walk($hostname, $community, '.1.3.6.1.2.1.1', '')); 19 var_dump(snmp2_real_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, '')); 23 $return = snmp2_real_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 30 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 38 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retr… 42 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $… 44 $return = snmp2_real_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $… 48 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retr…
|
/PHP-5.6/ext/standard/tests/strings/ |
H A D | dirname_variation.phpt | 23 "hostname:/home/user/bar.tar", 24 "hostname:/home/user/tbar.gz/", 25 "hostname:/home/user/My Pics.gz", 26 "hostname:/home/user/My Pics.gz/", 27 "hostname:/home/user/My Pics/", 28 "hostname:/home/user/My Pics", 85 string\(19\) "hostname:(\\|\/)home(\\|\/)user" 88 string\(19\) "hostname:(\\|\/)home(\\|\/)user" 91 string\(19\) "hostname:(\\|\/)home(\\|\/)user" 94 string\(19\) "hostname:(\\|\/)home(\\|\/)user" [all …]
|
H A D | basename_variation.phpt | 25 array("hostname:/home/usr/bar.tar"), 26 array("hostname:/home/user/bar.tar", "home"), 27 array("hostname:/home/user/tbar.gz", "bar.gz"), 28 array("hostname:/home/user/tbar.gz", "/bar.gz"), 29 array("hostname:/home/user/tbar.gz", "/bar.gz/"), 30 array("hostname:/home/user/tbar.gz/", "/bar.gz/"), 35 array("hostname:/home/user/My Pics.gz/", ".gz"), 36 array("hostname:/home/user/My Pics.gz/"), 37 array("hostname:/home/user/My Pics.gz/", NULL), 38 array("hostname:/home/user/My Pics.gz/", ' '), [all …]
|
/PHP-5.6/ext/sybase_ct/tests/ |
H A D | test_appname.phpt | 23 $hostname= 'php.net'; 24 ini_set('sybct.hostname', $hostname); 29 hostname, 39 compare_string($hostname, $r[0]['hostname']) 47 hostname,
|
/PHP-5.6/ext/standard/tests/network/ |
H A D | fsockopen_variation1.phpt | 16 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 D | fsockopen_basic.phpt | 5 /* Prototype : proto resource fsockopen(string hostname, int port [, int errno [, string errstr [,… 25 $hostname = 'tcp://127.0.0.1'; // loopback address 31 $client = fsockopen($hostname, $port, $errno, $errstr, $timeout); 36 $second_client = fsockopen($hostname, $port); 41 $address = $hostname . ':' . $port;
|
H A D | fsockopen_error.phpt | 5 /* Prototype : proto resource fsockopen(string hostname, int port [, int errno [, string errstr [,… 16 $hostname = 'string_val'; 22 var_dump( fsockopen($hostname, $port, $errno, $errstr, $timeout, $extra_arg) ); 30 $hostname = 'tcp://127.0.0.1'; // loopback address 35 var_dump( fsockopen($hostname, $port, $errno, $errstr, $timeout) ); 39 $hostname = 'invalid://127.0.0.1'; // loopback address 44 var_dump( fsockopen($hostname, $port, $errno, $errstr, $timeout) );
|
H A D | fsockopen_variation2.phpt | 6 $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 D | gethostbynamel_error.phpt | 5 /* Prototype : proto array gethostbynamel(string hostname) 6 * Description: Return a list of IP addresses that a given hostname resolves to. 19 $hostname = 'string_val'; 21 var_dump( gethostbynamel($hostname, $extra_arg) );
|
/PHP-5.6/ext/standard/ |
H A D | fsock.c | 44 char *hostname = NULL; in php_fsockopen_stream() local 59 hostname_len = spprintf(&hostname, 0, "%s:%ld", host, port); in php_fsockopen_stream() 62 hostname = host; in php_fsockopen_stream() 79 stream = php_stream_xport_create(hostname, hostname_len, REPORT_ERRORS, in php_fsockopen_stream() 83 efree(hostname); in php_fsockopen_stream()
|
/PHP-5.6/ext/standard/tests/file/ |
H A D | basename_variation1.phpt | 23 "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 …]
|
H A D | basename.phpt | 74 array("hostname:/home/usr/bar.tar"), 75 array("hostname:/home/user/bar.tar", "home"), 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/"), 79 array("hostname:/home/user/tbar.gz/", "/bar.gz/"), 84 array("hostname:/home/user/My Pics.gz/", ".gz"), 85 array("hostname:/home/user/My Pics.gz/"), 86 array("hostname:/home/user/My Pics.gz/", NULL), 87 array("hostname:/home/user/My Pics.gz/", ' '), [all …]
|