Home
last modified time | relevance | path

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

12345678910>>...26

/PHP-8.2/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 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
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 (true !== ($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 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
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 (true !== ($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 D045.phpt9 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
11 $stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'");
25 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
27 $stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'");
43 string(4) "port"
H A Dmysqli_connect_error.phpt23 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
24 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
25 $host, $user, $db, $port, $socket);
32 … = @my_mysqli_connect($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $socket))
33 …e server should fail using host=%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, socket=%s\n",
34 $host, $user . 'unknown_really', $db, $port, $socket);
H A Dmysqli_report_new.phpt9 if (!$link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
10 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
11 $host, $user, $db, $port, $socket));
30 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
31 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
32 $host, $user, $db, $port, $socket);
H A Dmysqli_change_user_new.phpt9 if (!$link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
10 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
11 $host, $user, $db, $port, $socket));
26 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
27 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
28 $host, $user, $db, $port, $socket);
H A Dmysqli_connect_errno.phpt23 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
24 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
25 $host, $user, $db, $port, $socket);
32 …$link = @my_mysqli_connect($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $so…
34 …erver should fail using host=%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, socket=%s, expe…
35 … $host, $user . 'unknown_really', $db, $port, $socket, gettype($link), var_export($link, true));
H A Dmysqli_change_user_old.phpt9 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
10 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
11 $host, $user, $db, $port, $socket));
23 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
25 $host, $user, $db, $port, $socket);
40 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
42 $host, $user, $db, $port, $socket);
76 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
78 $host, $user, $db, $port, $socket);
86 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
[all …]
H A Dmysqli_change_user.phpt13 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
15 $host, $user, $db, $port, $socket);
20 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
22 $host, $user, $db, $port, $socket);
28 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
30 $host, $user, $db, $port, $socket);
60 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
62 $host, $user, $db, $port, $socket);
72 $host, $user, $db, $port, $socket);
96 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
[all …]
H A Dbug29311.phpt16 global $host, $user, $passwd, $db, $port, $socket;
17 parent::__construct($host, $user, $passwd, $db, $port, $socket);
25 global $host, $user, $passwd, $db, $port, $socket;
26 $this->connect($host, $user, $passwd, $db, $port, $socket);
37 $foo[2] = new mysql3($host, $user, $passwd, $db, $port, $socket);
/PHP-8.2/ext/standard/
H A Dfsock.c32 zend_long port = -1; in php_fsockopen_stream() local
52 Z_PARAM_LONG(port) in php_fsockopen_stream()
65 spprintf(&hashkey, 0, "pfsockopen__%s:" ZEND_LONG_FMT, host, port); in php_fsockopen_stream()
68 if (port > 0) { in php_fsockopen_stream()
69 hostname_len = spprintf(&hostname, 0, "%s:" ZEND_LONG_FMT, host, port); in php_fsockopen_stream()
77 if (port > 0) { in php_fsockopen_stream()
101 if (port > 0) { in php_fsockopen_stream()
105 …php_error_docref(NULL, E_WARNING, "Unable to connect to %s:" ZEND_LONG_FMT " (%s)", host, port, er… in php_fsockopen_stream()
/PHP-8.2/ext/standard/tests/network/
H A Dfsockopen_basic.phpt10 $port = rand(10000, 65000);
12 $server = @stream_socket_server("tcp://127.0.0.1:$port");
25 $client = fsockopen($hostname, $port, $errno, $errstr, $timeout);
30 $second_client = fsockopen($hostname, $port);
34 echo "\nCalling fsockopen() with address and port in same string:\n";
35 $address = $hostname . ':' . $port;
52 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-8.2/ext/snmp/tests/
H A Dbug60749.phpt2 Bug #60749: SNMP module should not strip non-standard SNMP port from hostname
21 $port = 1161;
22 $session = new SNMP(SNMP::VERSION_1, "$hostname:$port", $community, $timeout, $retries);
24 if (!str_ends_with($info["hostname"], ":$port")) {
25 echo "'" . $info["hostname"] . "' != '$ip:$port'\n";
/PHP-8.2/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.phpt22 for($port = $minport; $port <= $maxport; ++$port) {
23 if (@socket_bind($server, $localhost, $port)) {
40 if (!socket_connect($client, $localhost, $port)) {
53 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.phpt18 $port = 80;
21 $socketConn = socket_connect($socket, $host, $port);
26 $socketConn = socket_connect($socket, $host, $port);
31 $socketConn = socket_connect($socket, $host, $port);
38 $socketConn = socket_connect($socket, $host, $port);
45 unset($port);
H A Dmcast_ipv6_recv.phpt16 socket_getsockname($s, $unused, $port);
27 $r = socket_sendto($s, $m = "testing packet", strlen($m), 0, 'ff01::114', $port);
65 socket_getsockname($s, $unused, $port);
73 $r = socket_sendto($sends1, $m = "testing packet", strlen($m), 0, $mcastaddr, $port);
80 $r = socket_sendto($sends1, $m = "initial packet", strlen($m), 0, $mcastaddr, $port);
98 $r = socket_sendto($sends1, $m = "unicast packet", strlen($m), 0, "::1", $port);
108 $r = socket_sendto($sends1, $m = "mcast packet", strlen($m), 0, $mcastaddr, $port);
121 $r = socket_sendto($sends1, $m = "unicast packet", strlen($m), 0, "::1", $port);
132 $r = socket_sendto($sends1, $m = "mcast packet", strlen($m), 0, $mcastaddr, $port);
144 $r = socket_sendto($sends1, $m = "unicast packet", strlen($m), 0, "::1", $port);
[all …]
/PHP-8.2/sapi/fpm/tests/
H A Dsocket-ipv4-fallback.phpt2 FPM: Socket port connection falls back to IPv4
26 $port = $tester->getPort();
27 // Occupy our port and let things fail
28 $busy = stream_socket_server("tcp://[::]:$port");
31 $tester->expectLogError("unable to bind listening socket for address '$port': " .
/PHP-8.2/ext/standard/tests/streams/
H A Dbug74090.phpt10 $port = 12327;
12 while(!$server && $port < 20000){
13 $port++;
14 $server = stream_socket_server("udp://localhost:$port", $errno, $errstr, STREAM_SERVER_BIND);
21 $fd = stream_socket_client("udp://localhost:$port", $errno, $errstr, 0, STREAM_CLIENT_CONNECT | STR…

Completed in 40 milliseconds

12345678910>>...26