/PHP-7.0/ext/mysqli/tests/ |
H A D | 001.phpt | 15 /*** 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 D | mysqli_pconn_twice.phpt | 19 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 D | mysqli_pconn_conn_multiple.phpt | 19 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 D | mysqli_connect_twice.phpt | 13 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 D | mysqli_connect_error.phpt | 20 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 D | mysqli_connect_errno.phpt | 20 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 D | mysqli_report_new.phpt | 9 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 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_pconn_limits.phpt | 28 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 D | mysqli_change_user_new.phpt | 9 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 D | fsockopen_basic.phpt | 5 /* 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 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-7.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-7.0/ext/standard/ |
H A D | fsock.c | 36 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 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_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);
|
H A D | socket_shutdown.phpt | 17 $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 D | ipv4loop.phpt | 17 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 D | php_cli_server_020.phpt | 12 list($host, $port) = explode(':', PHP_CLI_SERVER_ADDRESS); 13 $port = intval($port) ?: 80; 15 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
|
H A D | bug66830.phpt | 15 list($host, $port) = explode(':', PHP_CLI_SERVER_ADDRESS); 16 $port = intval($port)?:80; 18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
|
H A D | php_cli_server_018.phpt | 15 list($host, $port) = explode(':', PHP_CLI_SERVER_ADDRESS); 16 $port = intval($port)?:80; 18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
|
H A D | php_cli_server_008.phpt | 12 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);
|