/PHP-8.2/ext/snmp/tests/ |
H A D | snmp2_set.phpt | 20 echo "No type & no value (timeout & retries instead)\n"; 28 echo "No value (timeout instead), retries instead of timeout\n"; 38 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 41 $oldvalue2 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 45 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 47 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 49 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 51 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1)); 56 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 169 No type & no value (timeout & retries instead) [all …]
|
H A D | snmpset.phpt | 20 echo "No type & no value (timeout & retries instead)\n"; 22 $z = snmpset($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0', $timeout, $retries); 28 echo "No value (timeout instead), retries instead of timeout\n"; 38 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 41 $oldvalue2 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 45 $z = snmpset($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 47 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 48 $z = snmpset($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 50 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1)); 163 No type & no value (timeout & retries instead) [all …]
|
H A D | snmp3.phpt | 17 // string object_id [, int timeout [, int retries]]); 22 …hostname, $user_noauth, 'noAuthNoPriv', '', '', '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 37 …me, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 40 …ame, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 46 …ame, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 52 …ostname, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1', $timeout, $retries); 59 …name, $username, 'authNoPriv', 'MD5', $auth_pass, 'AES', '', '.1.3.6.1.2.1.1', $timeout, $retries); 67 …t($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, $timeout, $retries); 70 …ser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, 's', $newvalue1, $timeout, $retries); 72 …name, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, $timeout, $retries) === $n… [all …]
|
H A D | snmpget.phpt | 20 echo "Single OID, default timeout and retries\n"; 23 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout)); 25 var_dump(snmpget($hostname, $community, '.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'), $timeout, $retries)); 29 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… 33 var_dump(snmpget($hostname, $community, '.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'), $timeout, $retries)); 37 …t($hostname, $community, array('.1.3.6.1.2.1...1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeout, $retries)); 41 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.110', $timeout, $retries)); 43 var_dump(snmpget($hostname, $community, array('.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 | snmp2_get.phpt | 22 var_dump(snmp2_get($hostname, $community, array(), $timeout, $retries)); 29 var_dump(snmp2_get($hostname, $community, '.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'), $timeout, $retries)); 33 …get($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeout, $retries)); 37 var_dump(snmp2_get($hostname, $community, '.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'), $timeout, $retries)); 41 …t($hostname, $community, array('.1.3.6.1.2.1...1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeout, $retries)); 45 var_dump(snmp2_get($hostname, $community, '.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.110'), $timeout, $retries)); 49 …t($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.220'), $timeout, $retries));
|
H A D | snmp2_walk.phpt | 21 $return = snmp2_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 29 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 34 $return = snmpwalk($hostname, $community, '', $timeout, $retries); 40 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries); 44 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries); 48 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retri… 50 $return = snmp2_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retri… 54 $return = snmp2_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
|
H A D | snmpwalk.phpt | 21 $return = snmpwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 29 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 34 $return = snmpwalk($hostname, $community, '', $timeout, $retries); 40 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries); 44 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries); 48 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries… 50 $return = snmpwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries… 54 $return = snmpwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
|
H A D | snmp_getvalue.phpt | 21 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 25 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 29 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 36 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 43 ….2.1.88.1.4.2.1.3.6.95.115.110.109.112.100.95.108.105.110.107.68.111.119.110', $timeout, $retries); 50 ….2.1.88.1.4.2.1.3.6.95.115.110.109.112.100.95.108.105.110.107.68.111.119.110', $timeout, $retries); 59 var_dump(count(snmp2_walk($hostname, $community, '.', $timeout, $retries)));
|
H A D | generic_timeout_error.phpt | 2 Generic timeout (wrong community) 19 var_dump(snmpget($hostname, 'timeout_community_432', '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 20 var_dump(snmpget($hostname, 'timeout_community_432', array('.1.3.6.1.2.1.1.1.0'), $timeout, $retrie…
|
H A D | snmp2_real_walk.phpt | 21 $return = snmp2_real_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 28 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 36 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retr… 40 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $… 42 $return = snmp2_real_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $… 46 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retr…
|
H A D | snmprealwalk.phpt | 21 $return = snmprealwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 28 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 36 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries… 40 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $ret… 42 $return = snmprealwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $ret… 46 $return = snmprealwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries…
|
/PHP-8.2/ext/standard/tests/streams/ |
H A D | non_finite_values.phpt | 2 Non-finite timeout values in stream functions 17 stream_socket_client("tcp://0.0.0.0:14781", timeout: $value); 24 stream_socket_accept(): Argument #2 ($timeout) must be a finite value 25 stream_socket_accept(): Argument #2 ($timeout) must be a finite value 26 stream_socket_accept(): Argument #2 ($timeout) must be a finite value 27 stream_socket_accept(): Argument #2 ($timeout) must be a finite value 28 stream_socket_client(): Argument #4 ($timeout) must be a finite value 29 stream_socket_client(): Argument #4 ($timeout) must be a finite value 30 stream_socket_client(): Argument #4 ($timeout) must be a finite value 31 stream_socket_client(): Argument #4 ($timeout) must be a finite value
|
/PHP-8.2/ext/snmp/ |
H A D | snmp.stub.php | 113 function snmpget(string $hostname, string $community, array|string $object_id, int $timeout = -1, i… argument 115 function snmpgetnext(string $hostname, string $community, array|string $object_id, int $timeout = -… argument 117 function snmpwalk(string $hostname, string $community, array|string $object_id, int $timeout = -1, … argument 137 function snmp2_get(string $hostname, string $community, array|string $object_id, int $timeout = -1,… argument 139 function snmp2_getnext(string $hostname, string $community, array|string $object_id, int $timeout =… argument 151 array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 157 array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 163 array|string $object_id, int $timeout = -1, int $retries = -1): array|false {} argument 169 array|string $object_id, int $timeout = -1, int $retries = -1): array|false {} argument 176 int $timeout = -1, int $retries = -1): bool {} argument [all …]
|
/PHP-8.2/ext/standard/ |
H A D | fsock.c | 34 double timeout; in php_fsockopen_stream() local 55 Z_PARAM_DOUBLE_OR_NULL(timeout, timeout_is_null) in php_fsockopen_stream() 61 timeout = (double)FG(default_socket_timeout); in php_fsockopen_stream() 76 if (timeout != -1.0 && !(timeout >= 0.0 && timeout <= (double) PHP_TIMEOUT_ULL_MAX / 1000000.0)) { in php_fsockopen_stream() 89 conv = (time_t) (timeout * 1000000.0); in php_fsockopen_stream() 92 conv = (long) (timeout * 1000000.0); in php_fsockopen_stream()
|
/PHP-8.2/ext/standard/tests/http/ |
H A D | bug76342.phpt | 2 Bug #76342 (file_get_contents waits twice specified timeout) 11 $timeout = 0.5; 14 'timeout' => $timeout, 25 if ($diff >= 2 * $timeout) {
|
/PHP-8.2/main/ |
H A D | php_network.h | 140 PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout); 159 # define php_poll2(ufds, nfds, timeout) poll(ufds, nfds, timeout) argument 193 static inline int php_pollfd_for_ms(php_socket_t fd, int events, int timeout) in php_pollfd_for_ms() argument 202 n = php_poll2(&p, 1, timeout); in php_pollfd_for_ms() 277 struct timeval *timeout, 281 #define php_connect_nonb(sock, addr, addrlen, timeout) \ argument 292 struct timeval *timeout, 317 struct timeval timeout; member 330 int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC); 350 …k_open_host(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), … argument [all …]
|
/PHP-8.2/ext/pdo_dblib/tests/ |
H A D | timeout.phpt | 16 // regular timeout attribute, set after instance created, will affect query timeout, causing this q… 30 // pdo_dblib-specific timeout attribute, set after instance created, will control query timeout, ca… 44 // regular timeout attribute will affect query timeout, causing this query to fail 56 // pdo_dblib-specific timeout attribute will control query timeout, causing this query to fail
|
/PHP-8.2/ext/pgsql/tests/ |
H A D | nonblocking.inc | 3 function nb_is_readable($stream, $timeout = 1) { 5 return (bool) stream_select($r, $w, $e, $timeout, 0); 7 function nb_is_writable($stream, $timeout = 1) { 9 return (bool) stream_select($r, $w, $e, $timeout, 0);
|
/PHP-8.2/main/streams/ |
H A D | php_stream_transport.h | 29 struct timeval *timeout, 48 struct timeval *timeout, 54 #define php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, est… argument 55 …_php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, eco… 67 struct timeval *timeout, 83 struct timeval *timeout, 142 struct timeval *timeout; member
|
/PHP-8.2/sapi/fpm/fpm/events/ |
H A D | select.c | 35 static int fpm_event_select_wait(struct fpm_event_queue_s *queue, unsigned long int timeout); 81 static int fpm_event_select_wait(struct fpm_event_queue_s *queue, unsigned long int timeout) /* {{{… in fpm_event_select_wait() argument 92 t.tv_sec = timeout / 1000; in fpm_event_select_wait() 93 t.tv_usec = (timeout % 1000) * 1000; in fpm_event_select_wait()
|
H A D | port.c | 30 static int fpm_event_port_wait(struct fpm_event_queue_s *queue, unsigned long int timeout); 112 static int fpm_event_port_wait(struct fpm_event_queue_s *queue, unsigned long int timeout) /* {{{ */ in fpm_event_port_wait() argument 119 t.tv_sec = (int)(timeout / 1000); in fpm_event_port_wait() 120 t.tv_nsec = (timeout % 1000) * 1000 * 1000; in fpm_event_port_wait()
|
/PHP-8.2/sapi/fpm/fpm/ |
H A D | fpm_events.h | 15 struct timeval timeout; /* next time to trigger */ member 35 int (*wait)(struct fpm_event_queue_s *queue, unsigned long int timeout); 44 int fpm_event_add(struct fpm_event_s *ev, unsigned long int timeout);
|
/PHP-8.2/ext/curl/tests/ |
H A D | gh15547.phpt | 2 GH-15547 - curl_multi_select overflow on timeout argument 21 Warning: curl_multi_select(): timeout must be between 0 and %d in %s on line %d 25 Warning: curl_multi_select(): timeout must be between 0 and %d in %s on line %d
|