Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 587) sorted by relevance

12345678910>>...24

/PHP-7.0/ext/mysqli/tests/
H A D001.phpt15 /*** test mysqli_connect localhost:port ***/
16 $link = my_mysqli_connect($host, $user, $passwd, "", $port, $socket);
22 $test.= (my_mysqli_real_connect($link, $host, $user, $passwd, "", $port, $socket) )
28 $test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))
32 /*** test mysqli_real_connect with port ***/
34 $test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))
43 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))
52 …$test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, MYSQLI_CLIENT_…
H A Dmysqli_pconn_twice.phpt19 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
20 …printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s,…
21 $host, $user, $db, $port, $socket);
23 if (true !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
37 if (!$link = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
39 $host, $user, $db, $port, $socket);
42 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket)))
56 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))
59 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
61 $host, $user, $db, $port, $socket);
[all …]
H A Dmysqli_pconn_conn_multiple.phpt19 if (!$link = my_mysqli_connect($phost, $user, $passwd, $db, $port, $socket))
21 $phost, $user, $db, $port, $socket);
44 if (!$link = new my_mysqli($phost, $user, $passwd, $db, $port, $socket))
46 $phost, $user, $db, $port, $socket);
72 if (!$link = mysqli_connect($phost, $user, $passwd, $db, $port, $socket))
74 $phost, $user, $db, $port, $socket);
83 $host, $user, $db, $port, $socket);
106 if (!$link = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
108 $host, $user, $db, $port, $socket);
134 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
[all …]
H A Dmysqli_connect_twice.phpt13 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
14 …printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s,…
15 $host, $user, $db, $port, $socket);
20 if (true !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
38 if (!$link = new my_mysqli($host, $user, $passwd, $db, $port, $socket))
40 $host, $user, $db, $port, $socket);
45 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket)))
63 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))
66 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
68 $host, $user, $db, $port, $socket);
[all …]
H A Dmysqli_connect_error.phpt20 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
21 …printf("[002] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s,…
22 $host, $user, $db, $port, $socket);
29 …if ($link = @my_mysqli_connect($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port,…
30 …e server should fail using host=%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, socket=%s\n",
31 $host, $user . 'unknown_really', $db, $port, $socket);
H A Dmysqli_connect_errno.phpt20 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
21 …printf("[002] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s,…
22 $host, $user, $db, $port, $socket);
29 …$link = @my_mysqli_connect($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $so…
31 …erver should fail using host=%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, socket=%s, expe…
32 $host, $user . 'unknown_really', $db, $port, $socket, gettype($link), var_export($link, true));
H A Dmysqli_report_new.phpt9 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
10 …die(sprintf("SKIP Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port
11 $host, $user, $db, $port, $socket));
35 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
36 …printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s,…
37 $host, $user, $db, $port, $socket);
H A Dbug29311.phpt15 global $host, $user, $passwd, $db, $port, $socket;
16 parent::__construct($host, $user, $passwd, $db, $port, $socket);
24 global $host, $user, $passwd, $db, $port, $socket;
25 $this->connect($host, $user, $passwd, $db, $port, $socket);
36 $foo[2] = new mysql3($host, $user, $passwd, $db, $port, $socket);
H A Dmysqli_pconn_limits.phpt28 if (!$link2 = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
41 if (!$plink = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
42 …eate persistent connection using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d]…
43 $host, $user, $db, $port, $socket,
54 if (!$plink2 = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
55 …eate persistent connection using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d]…
56 $host, $user, $db, $port, $socket,
68 if (!my_mysqli_real_connect($plink3, $host, $user, $passwd, $db, $port, $socket))
69 …eate persistent connection using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d]…
70 $host, $user, $db, $port, $socket,
H A Dmysqli_change_user_new.phpt9 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
10 …die(sprintf("SKIP Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port
11 $host, $user, $db, $port, $socket));
23 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
24 …printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s,…
25 $host, $user, $db, $port, $socket);
/PHP-7.0/ext/standard/tests/network/
H A Dfsockopen_basic.phpt5 /* Prototype : proto resource fsockopen(string hostname, int port [, int errno [, string errstr [,…
16 $port = rand(10000, 65000);
18 $server = @stream_socket_server("tcp://127.0.0.1:$port");
31 $client = fsockopen($hostname, $port, $errno, $errstr, $timeout);
36 $second_client = fsockopen($hostname, $port);
40 echo "\nCalling fsockopen() with address and port in same string:\n";
41 $address = $hostname . ':' . $port;
58 Calling fsockopen() with address and port in same string:
H A Dfsockopen_variation1.phpt8 $port = rand(10000, 65000);
10 $server = @stream_socket_server("tcp://127.0.0.1:$port");
18 $client = fsockopen($hostname, $port);
22 echo "\nCalling fsockopen() with address and port in same string, without a protocol:\n";
23 $address = $hostname . ':' . $port;
36 Calling fsockopen() with address and port in same string, without a protocol:
H A Dfsockopen_variation2.phpt7 $port = '31337';
10 $server = stream_socket_server($hostname . ':' . $port, $errno, $errstr, STREAM_SERVER_BIND);
13 $client = fsockopen($hostname, $port);
21 echo "\nCalling fsockopen() with address and port in same string:\n";
22 $address = $hostname . ':' . $port;
43 Calling fsockopen() with address and port in same string:
H A Dudp4loop.phpt6 for ($port = 31338; $port < 31500; ++$port) {
7 $uri = "udp://127.0.0.1:$port";
/PHP-7.0/ext/snmp/tests/
H A Dbug60749.phpt2 Bug #60749: SNMP module should not strip non-standard SNMP port from hostname
19 $port = 1161;
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";
/PHP-7.0/ext/standard/
H A Dfsock.c36 zend_long port = -1; in php_fsockopen_stream() local
54 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|lz/z/d", &host, &host_len, &port, &zerrno, &zerrstr,… in php_fsockopen_stream()
59 spprintf(&hashkey, 0, "pfsockopen__%s:" ZEND_LONG_FMT, host, port); in php_fsockopen_stream()
62 if (port > 0) { in php_fsockopen_stream()
63 hostname_len = spprintf(&hostname, 0, "%s:" ZEND_LONG_FMT, host, port); in php_fsockopen_stream()
91 if (port > 0) { in php_fsockopen_stream()
95 …php_error_docref(NULL, E_WARNING, "unable to connect to %s:" ZEND_LONG_FMT " (%s)", host, port, er… in php_fsockopen_stream()
/PHP-7.0/ext/sockets/tests/
H A Dipv6loop.phpt18 for($port = 31337; $port < 31357; ++$port) {
19 if (socket_bind($server, '::1', $port)) {
25 die("Unable to bind to [::1]:$port");
36 if (!socket_connect($client, '::1', $port)) {
H A Dsocket_getpeername_ipv4loop.phpt26 for($port = $minport; $port <= $maxport; ++$port) {
27 if (socket_bind($server, $localhost, $port)) {
44 if (!socket_connect($client, $localhost, $port)) {
57 var_dump($address, $port === $peerport);
H A Dsocket_getpeername_ipv6loop.phpt27 for($port = $minport; $port <= $maxport; ++$port) {
28 if (socket_bind($server, $localhost, $port)) {
45 if (!socket_connect($client, $localhost, $port)) {
58 var_dump($address, $port === $peerport);
H A Dsocket_shutdown.phpt17 $port = 80;
20 $socketConn = socket_connect($socket, $host, $port);
25 $socketConn = socket_connect($socket, $host, $port);
30 $socketConn = socket_connect($socket, $host, $port);
37 $socketConn = socket_connect($socket, $host, $port);
44 unset($port);
H A Dipv4loop.phpt17 for($port = 31337; $port < 31357; ++$port) {
18 if (socket_bind($server, '127.0.0.1', $port)) {
35 if (!socket_connect($client, '127.0.0.1', $port)) {
/PHP-7.0/sapi/cli/tests/
H A Dphp_cli_server_020.phpt12 list($host, $port) = explode(':', PHP_CLI_SERVER_ADDRESS);
13 $port = intval($port) ?: 80;
15 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
H A Dbug66830.phpt15 list($host, $port) = explode(':', PHP_CLI_SERVER_ADDRESS);
16 $port = intval($port)?:80;
18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
H A Dphp_cli_server_018.phpt15 list($host, $port) = explode(':', PHP_CLI_SERVER_ADDRESS);
16 $port = intval($port)?:80;
18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
H A Dphp_cli_server_008.phpt12 list($host, $port) = explode(':', PHP_CLI_SERVER_ADDRESS);
13 $port = intval($port)?:80;
15 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
34 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);

Completed in 29 milliseconds

12345678910>>...24