Home
last modified time | relevance | path

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

12345678910>>...19

/PHP-8.4/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.4/ext/mysqli/tests/
H A D001.phpt18 /*** test mysqli_connect localhost:port ***/
19 $link = my_mysqli_connect($host, $user, $passwd, "", $port, $socket);
25 $test.= (my_mysqli_real_connect($link, $host, $user, $passwd, "", $port, $socket) )
31 $test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))
35 /*** test mysqli_real_connect with port ***/
37 $test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))
46 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))
55 …$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 $link = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
39 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket)))
53 if (true !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))
56 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
57 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
58 $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 $link = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
70 if (!$link = mysqli_connect($phost, $user, $passwd, $db, $port, $socket))
72 $phost, $user, $db, $port, $socket);
74 if (true !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))
79 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
81 $host, $user, $db, $port, $socket);
104 $link = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
130 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
[all …]
H A Dmysqli_connect_error.phpt22 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
23 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
24 $host, $user, $db, $port, $socket);
31 …== @my_mysqli_connect($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $socket))
32 …e server should fail using host=%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, socket=%s\n",
33 $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_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 $link = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
43 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket)))
61 if (true !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))
64 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
65 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
66 $host, $user, $db, $port, $socket);
[all …]
H A Dmysqli_get_connection_stats_off.phpt17 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
18 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
19 $host, $user, $db, $port, $socket);
28 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
29 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
30 $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));
23 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);
H A Dmysqli_connect_errno.phpt22 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
23 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
24 $host, $user, $db, $port, $socket);
31 …$link = @my_mysqli_connect($host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $so…
33 …erver should fail using host=%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, socket=%s, expe…
34 … $host, $user . 'unknown_really', $db, $port, $socket, gettype($link), var_export($link, true));
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);
H A Dmysqli_pconn_limits.phpt25 if (!$link2 = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
38 if (!$plink = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
39 …eate persistent connection using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d]…
40 $host, $user, $db, $port, $socket,
51 if (!$plink2 = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
52 …eate persistent connection using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d]…
53 $host, $user, $db, $port, $socket,
65 if (!my_mysqli_real_connect($plink3, $host, $user, $passwd, $db, $port, $socket))
66 …eate persistent connection using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d]…
67 $host, $user, $db, $port, $socket,
/PHP-8.4/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.4/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.4/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 Dsocket_sentto_recvfrom_ipv4_udp.phpt18 socket_getsockname($socket, $address, $port);
22 $sent = socket_sendto($socket, $msg, $len, 0, $address, $port);
39 $socket, $buffering, $wants, 0, $address, $port);
63 echo "Received $buf from remote address $address and remote port $port" . PHP_EOL;
66 Received Ping! from remote address %s and remote port %d
/PHP-8.4/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.4/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 42 milliseconds

12345678910>>...19