/PHP-8.0/ext/mysqli/tests/ |
H A D | 001.phpt | 14 /*** test mysqli_connect localhost:port ***/ 15 $link = my_mysqli_connect($host, $user, $passwd, "", $port, $socket); 21 $test.= (my_mysqli_real_connect($link, $host, $user, $passwd, "", $port, $socket) ) 27 $test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) 31 /*** test mysqli_real_connect with port ***/ 33 $test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) 42 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) 51 …$test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, MYSQLI_CLIENT_…
|
H A D | mysqli_pconn_twice.phpt | 18 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 19 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", 20 $host, $user, $db, $port, $socket); 22 if (true !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))) 36 if (!$link = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) 38 $host, $user, $db, $port, $socket); 41 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket))) 55 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 58 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 60 $host, $user, $db, $port, $socket); [all …]
|
H A D | mysqli_pconn_conn_multiple.phpt | 18 if (!$link = my_mysqli_connect($phost, $user, $passwd, $db, $port, $socket)) 20 $phost, $user, $db, $port, $socket); 43 if (!$link = new my_mysqli($phost, $user, $passwd, $db, $port, $socket)) 45 $phost, $user, $db, $port, $socket); 71 if (!$link = mysqli_connect($phost, $user, $passwd, $db, $port, $socket)) 73 $phost, $user, $db, $port, $socket); 82 $host, $user, $db, $port, $socket); 105 if (!$link = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) 107 $host, $user, $db, $port, $socket); 133 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) [all …]
|
H A D | mysqli_connect_twice.phpt | 12 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 13 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", 14 $host, $user, $db, $port, $socket); 19 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); 44 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket))) 62 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 65 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 67 $host, $user, $db, $port, $socket); [all …]
|
H A D | 045.phpt | 9 $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 D | mysqli_connect_error.phpt | 22 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 D | mysqli_change_user_new.phpt | 8 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 9 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", 10 $host, $user, $db, $port, $socket)); 25 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 26 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", 27 $host, $user, $db, $port, $socket);
|
H A D | mysqli_connect_errno.phpt | 22 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 D | mysqli_report_new.phpt | 8 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 9 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", 10 $host, $user, $db, $port, $socket)); 34 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 35 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", 36 $host, $user, $db, $port, $socket);
|
H A D | bug29311.phpt | 15 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 D | mysqli_change_user_old.phpt | 8 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 9 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", 10 $host, $user, $db, $port, $socket)); 22 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 24 $host, $user, $db, $port, $socket); 39 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 41 $host, $user, $db, $port, $socket); 75 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 77 $host, $user, $db, $port, $socket); 85 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { [all …]
|
H A D | mysqli_change_user.phpt | 12 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 14 $host, $user, $db, $port, $socket); 19 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 21 $host, $user, $db, $port, $socket); 27 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 29 $host, $user, $db, $port, $socket); 59 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 61 $host, $user, $db, $port, $socket); 71 $host, $user, $db, $port, $socket); 95 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) [all …]
|
/PHP-8.0/ext/snmp/tests/ |
H A D | bug60749.phpt | 2 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-8.0/ext/standard/ |
H A D | fsock.c | 32 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() 88 if (port > 0) { in php_fsockopen_stream() 92 …php_error_docref(NULL, E_WARNING, "Unable to connect to %s:" ZEND_LONG_FMT " (%s)", host, port, er… in php_fsockopen_stream()
|
/PHP-8.0/ext/standard/tests/network/ |
H A D | fsockopen_basic.phpt | 10 $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 D | fsockopen_variation1.phpt | 8 $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 D | fsockopen_variation2.phpt | 7 $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 D | udp4loop.phpt | 6 for ($port = 31338; $port < 31500; ++$port) { 7 $uri = "udp://127.0.0.1:$port";
|
/PHP-8.0/ext/sockets/tests/ |
H A D | ipv6loop.phpt | 18 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 D | socket_shutdown.phpt | 18 $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 D | socket_getpeername_ipv4loop.phpt | 26 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 D | socket_getpeername_ipv6loop.phpt | 27 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);
|
/PHP-8.0/ext/standard/tests/streams/ |
H A D | bug74090.phpt | 10 $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…
|
/PHP-8.0/ext/sockets/ |
H A D | sockets.stub.php | 15 function socket_create_listen(int $port, int $backlog = 128): Socket|false {} argument 33 * @param int $port 35 function socket_getsockname(Socket $socket, &$address, &$port = null): bool {} argument 39 * @param int $port 41 function socket_getpeername(Socket $socket, &$address, &$port = null): bool {} argument 45 function socket_connect(Socket $socket, string $address, ?int $port = null): bool {} argument 49 function socket_bind(Socket $socket, string $address, int $port = 0): bool {} argument 59 * @param int $port 61 function socket_recvfrom(Socket $socket, &$data, int $length, int $flags, &$address, &$port = null)… argument 63 …et $socket, string $data, int $length, int $flags, string $address, ?int $port = null): int|false … argument
|
/PHP-8.0/sapi/fpm/tests/ |
H A D | socket-ipv4-fallback.phpt | 2 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': " .
|