/PHP-5.5/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 | 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_get_connection_stats_off.phpt | 20 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 21 …printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s,… 22 $host, $user, $db, $port, $socket); 31 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 32 …printf("[003] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s,… 33 $host, $user, $db, $port, $socket);
|
/PHP-5.5/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:
|
/PHP-5.5/ext/standard/ |
H A D | fsock.c | 36 long port = -1; in php_fsockopen_stream() local 50 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lzzd", &host, &host_len, &port, &zerrno, &… in php_fsockopen_stream() 55 spprintf(&hashkey, 0, "pfsockopen__%s:%ld", host, port); in php_fsockopen_stream() 58 if (port > 0) { in php_fsockopen_stream() 59 hostname_len = spprintf(&hostname, 0, "%s:%ld", host, port); in php_fsockopen_stream() 82 if (port > 0) { in php_fsockopen_stream() 86 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s:%ld (%s)", host, port, errstr… in php_fsockopen_stream()
|
/PHP-5.5/ext/sockets/tests/ |
H A D | socket_getpeername_ipv4loop.phpt | 17 /* Hold the port associated to address */ 18 $port = 31337; 26 if (!socket_bind($server, $localhost, $port)) { 27 die('Unable to bind to '.$localhost.':'.$port); 38 if (!socket_connect($client, $localhost, $port)) { 48 if (!socket_getpeername($client, $address, $port)) { 51 var_dump($address, $port);
|
H A D | socket_getpeername_ipv6loop.phpt | 18 /* Hold the port associated to address */ 19 $port = 31337; 27 if (!socket_bind($server, $localhost, $port)) { 28 die('Unable to bind to '.$localhost.':'.$port); 39 if (!socket_connect($client, $localhost, $port)) { 49 if (!socket_getpeername($client, $address, $port)) { 52 var_dump($address, $port);
|
/PHP-5.5/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-5.5/sapi/cli/tests/ |
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);
|
H A D | bug65066_100.phpt | 14 list($host, $port) = explode(':', PHP_CLI_SERVER_ADDRESS); 15 $port = intval($port)?:80; 17 $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_009.phpt | 15 list($host, $port) = explode(':', PHP_CLI_SERVER_ADDRESS); 16 $port = intval($port)?:80; 18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 37 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 57 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
|
H A D | bug65066_422.phpt | 14 list($host, $port) = explode(':', PHP_CLI_SERVER_ADDRESS); 15 $port = intval($port)?:80; 17 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
|
H A D | bug65066_511.phpt | 14 list($host, $port) = explode(':', PHP_CLI_SERVER_ADDRESS); 15 $port = intval($port)?:80; 17 $fp = fsockopen($host, $port, $errno, $errstr, 0.5);
|
/PHP-5.5/ext/openssl/tests/ |
H A D | bug46127.phpt | 12 function ssl_server($port) { 21 …$sock = stream_socket_server('ssl://127.0.0.1:'.$port, $errno, $errstr, STREAM_SERVER_BIND | STREA… 38 $port = rand(15000, 32000); 42 ssl_server($port); 48 $sock = fsockopen('ssl://127.0.0.1', $port, $errno, $errstr);
|
H A D | bug48182.phpt | 12 function ssl_server($port) { 13 $host = 'ssl://127.0.0.1'.':'.$port; 46 function ssl_async_client($port) { 47 $host = 'ssl://127.0.0.1'.':'.$port; 74 $port = rand(15000, 32000); 78 ssl_server($port); 84 ssl_async_client($port);
|