Home
last modified time | relevance | path

Searched refs:socket (Results 51 – 75 of 410) sorted by relevance

12345678910>>...17

/PHP-5.5/ext/mysqli/tests/
H A Dmysqli_stmt_datatype_change.phpt12 if (!$c1 = 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);
17 if (!$c2 = 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);
60 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
H A Dmysqli_pconn_reuse.phpt20 if (!$link1 = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
21 …onnect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d] %s\n",
22 $host, $user, $db, $port, $socket, mysqli_connect_errno(), mysqli_connect_error());
28 if (!$link2 = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
29 …onnect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d] %s\n",
30 $host, $user, $db, $port, $socket, mysqli_connect_errno(), mysqli_connect_error());
63 if (!$link2 = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
64 …onnect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d] %s\n",
65 $host, $user, $db, $port, $socket, mysqli_connect_errno(), mysqli_connect_error());
H A Dbug36949.phpt16 global $user, $host, $passwd, $db, $port, $socket;
17 $this->mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket);
34 global $user, $host, $passwd, $db, $port, $socket;
35 $this->mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket);
53 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
H A Dconnect.inc17 $socket = getenv("MYSQL_TEST_SOCKET") ? getenv("MYSQL_TEST_SOCKET") : null;
20 if ($socket) {
21 ini_set('mysqli.default_socket', $socket);
87 function my_mysqli_connect($host, $user, $passwd, $db, $port, $socket, $enable_env_flags = true) {
94 if (!mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, $flags))
97 $link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);
108 …function my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, $flags = 0, $en…
114 return mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, $flags);
118 …public function __construct($host, $user, $passwd, $db, $port, $socket, $enable_env_flags = true) {
125 $this->real_connect($host, $user, $passwd, $db, $port, $socket, $flags);
[all …]
H A Dmysqli_unclonable.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);
H A Dmysqli_pconn_kill.phpt19 if (!$plink = 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);
67 if (!$plink = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
68 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
69 $host, $user, $db, $port, $socket);
80 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
81 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
82 $host, $user, $db, $port, $socket);
H A Dmysqli_pconn_disabled.phpt20 if (!$link1 = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
22 …onnect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d] %s\n",
23 $host, $user, $db, $port, $socket, mysqli_connect_errno(), mysqli_connect_error());
29 if (!$link2 = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
31 …onnect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s, [%d] %s\n",
32 $host, $user, $db, $port, $socket, mysqli_connect_errno(), mysqli_connect_error());
H A Dbug33263.phpt15 public function __construct($host, $user, $passwd, $db, $port, $socket) {
17 parent::real_connect($host, $user, $passwd, $db, $port, $socket);
21 $mysql = new test($host, $user, $passwd, $db, $port, $socket);
H A Dmysqli_result_unclonable.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);
H A Dmysqli_stmt_unclonable.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);
H A Dmysqli_real_connect_pconn.phpt23 if (!mysqli_real_connect($link, $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);
31 …_real_connect($link, $host, $user . 'unknown_really', $passwd . 'non_empty', $db, $port, $socket)))
32 …**non_empty, dbname=%s, port=%s, socket=%s\n", gettype($tmp), $tmp, $host, $user . 'unknown_really…
35 ini_set('mysqli.default_socket', $socket);
81 if (!mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, 65536))
100 if (!mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket, 128))
144 if (NULL === ($tmp = mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
H A Dbug53503.phpt8 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
22 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
52 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
53 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
54 $host, $user, $db, $port, $socket);
/PHP-5.5/ext/mysql/tests/
H A Dclean_table.inc5 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
6 …nnot connect to the server using host=%s/%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
7 $host, $myhost, $user, $db, $port, $socket);
H A Dmysql_max_persistent.phpt34 function my_connect($offset, $host, $user, $passwd, $db, $port, $socket) {
35 if ($socket)
36 $host = sprintf("%s:%s", $host, $socket);
58 $links[0] = my_connect(10, $host, $user, $passwd, $db, $port, $socket);
59 $links[1] = my_connect(20, $host, 'pcontest', 'pcontest', $db, $port, $socket);
69 $links[0] = my_connect(40, $host, $user, $passwd, $db, $port, $socket);
82 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
83 …nnot connect to the server using host=%s/%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
84 $host, $myhost, $user, $db, $port, $socket);
H A Dconnect.inc24 …function my_mysql_connect($host, $user, $passwd, $db, $port, $socket, $flags = NULL, $persistent =…
29 if ($socket)
30 $host = sprintf("%s:%s", $host, $socket);
70 $socket = getenv("MYSQL_TEST_SOCKET") ? getenv("MYSQL_TEST_SOCKET") : null;
73 if ($socket) {
74 ini_set('mysql.default_socket', $socket);
H A Dmysql_create_db.phpt22 if ($link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket))
23 …onnect to the server using host=%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, socket=%s\n",
24 $host, $user . 'unknown_really', $db, $port, $socket);
46 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket))
47 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
48 $host, $user, $db, $port, $socket);
H A Dmysql_errno.phpt24 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
25 … Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
26 $host, $user, $db, $port, $socket);
42 …05] Can connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
43 $host . '_unknown', $user . '_unknown', $db, $port, $socket);
H A Dmysql_pconnect.phpt22 …$myhost = (is_null($socket)) ? ((is_null($port)) ? $host : $host . ':' . $port) : $host . ':' . $s…
24 …nnot connect to the server using host=%s/%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
25 $host, $myhost, $user, $db, $port, $socket);
30 …ect to the server using host=%s/%s, user=%s, passwd=***non_empty, dbname=%s, port=%s, socket=%s\n",
31 $host, $myhost, $user . 'unknown_really', $db, $port, $socket);
41 if ($socket) {
42 ini_set('mysql.default_socket', $socket);
/PHP-5.5/sapi/cli/tests/
H A D022.phpt16 $socket = stream_socket_server('unix://' . $socket_file);
17 var_dump($socket);
18 if (!$socket) {
22 0 => $socket,
/PHP-5.5/ext/standard/tests/mail/
H A Dmail_skipif.inc8 $socket = socket_create(AF_INET, SOCK_RAW, 1);
9 socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec' => 10, 'usec' => 10));
11 socket_connect($socket, "localhost", 143) or die ("skip can't socket to mail server");
/PHP-5.5/ext/sockets/tests/
H A Dsocket_abstract_path.phpt18 echo "creating server socket\n";
24 echo "creating client socket\n";
41 creating server socket
42 creating client socket
H A Dsocket_listen-wrongparams.phpt14 $socket = socket_create(AF_UNIX, SOCK_STREAM, 0);
15 var_dump(socket_listen($socket));
20 Warning: socket_listen(): unable to listen on socket [%d]: Invalid argument in %s on line %d
/PHP-5.5/ext/openssl/
H A Dxp_ssl.c389 if (sslsock->s.socket == -1) in php_openssl_sockop_close()
390 sslsock->s.socket = SOCK_ERR; in php_openssl_sockop_close()
392 if (sslsock->s.socket != SOCK_ERR) { in php_openssl_sockop_close()
395 shutdown(sslsock->s.socket, SHUT_RD); in php_openssl_sockop_close()
407 closesocket(sslsock->s.socket); in php_openssl_sockop_close()
408 sslsock->s.socket = SOCK_ERR; in php_openssl_sockop_close()
766 clisockdata->s.socket = clisock; in php_openssl_tcp_sockop_accept()
837 if (sslsock->s.socket == -1) { in php_openssl_sockop_set_option()
965 *(php_socket_t *)ret = sslsock->s.socket; in php_openssl_sockop_cast()
975 *(php_socket_t *)ret = sslsock->s.socket; in php_openssl_sockop_cast()
[all …]
/PHP-5.5/ext/standard/tests/network/
H A Dfsockopen_basic.phpt6 * Description: Open Internet or Unix domain socket connection
13 echo "Open a server socket\n";
17 /* Setup socket server */
50 Open a server socket
/PHP-5.5/ext/standard/tests/file/
H A Dfread_socket_variation1.phpt2 Testing fread() on a TCP server socket
8 /* Setup socket server */

Completed in 43 milliseconds

12345678910>>...17