Searched refs:socket (Results 1 - 25 of 47) sorted by relevance

12

/PHP_TRUNK/ext/mysqli/tests/
H A Dclean_table.inc4 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
5 printf("[clean] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
6 $host, $user, $db, $port, $socket);
H A Dskipifconnectfailure.inc5 $link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
H A Dtable.inc4 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
5 printf("Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
6 $host, $user, $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, $enable_env_flags = true) {
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,
[all...]
/PHP_TRUNK/ext/standard/tests/http/
H A Dserver.inc12 * $socket_string is the socket to create and listen on (e.g. tcp://127.0.0.1:1234)
/PHP_TRUNK/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_TRUNK/netware/
H A Dsendmail_nw.h9 #include <sys/socket.h> /* For struct sockaddr, 'PF_INET' and 'AF_INET' */
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_signals.c10 #include <sys/socket.h>
146 /* closing fastcgi listening socket will force fcgi_accept() exit immediately */
148 if (0 > socket(AF_UNIX, SOCK_STREAM, 0)) {
149 zlog(ZLOG_WARNING, "failed to create a new socket");
H A Dfpm_sockets.h9 #include <sys/socket.h>
H A Dfpm_sockets.c12 #include <sys/socket.h>
54 } else { /* on PARENT EXEC we want socket fds to be inherited through environment variable */
137 case FPM_STORE_SOCKET : /* inherited socket */
169 sock = socket(sa->sa_family, SOCK_STREAM, 0);
172 zlog(ZLOG_SYSERROR, "failed to create new listening socket: socket()");
177 zlog(ZLOG_WARNING, "failed to change socket attribute");
191 zlog(ZLOG_SYSERROR, "unable to bind listening socket for address '%s'", wp->config->listen_address);
298 zlog(ZLOG_DEBUG, "Found address for %s, socket opened on %s", addr, tmpbuf);
349 zlog(ZLOG_NOTICE, "using inherited socket f
[all...]
/PHP_TRUNK/ext/ftp/tests/
H A Dserver.inc3 $socket = null;
7 for ($i=0; $i<10 && !$socket; ++$i) {
10 $socket = stream_socket_server("tcp://127.0.0.1:$port", $errno, $errstr, STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
17 if (!$socket) {
95 $s = stream_socket_accept($socket);
273 // there are some servers that don't open the ftp-data socket if there's nothing to send
427 fclose($socket);
/PHP_TRUNK/sapi/fpm/tests/
H A Dfcgi.inc169 * @param Boolean $b true if persistent socket should be used, false otherwise
181 * Get the pesistent socket status
183 * @return Boolean true if the socket should be persistent, false otherwise
263 throw new \Exception('Unable to set timeout on socket');
446 * invocation comes back on this socket and is mistaken for response to request made with same ID
492 throw new \Exception('Failed to write request to socket');
524 // Reset timeout on socket for now
/PHP_TRUNK/ext/sockets/
H A Dconversions.h8 # include <sys/socket.h>
H A Dphp_sockets.h47 #include <sys/socket.h>
80 #define PHP_SOCKET_ERROR(socket, msg, errn) \
83 (socket)->error = _err; \
H A Dsockets.c44 # include <sys/socket.h>
115 ZEND_ARG_INFO(0, socket)
119 ZEND_ARG_INFO(0, socket)
123 ZEND_ARG_INFO(0, socket)
127 ZEND_ARG_INFO(0, socket)
132 ZEND_ARG_INFO(0, socket)
136 ZEND_ARG_INFO(0, socket)
142 ZEND_ARG_INFO(0, socket)
148 ZEND_ARG_INFO(0, socket)
154 ZEND_ARG_INFO(0, socket)
2259 socket_import_file_descriptor(PHP_SOCKET socket) argument
2313 PHP_SOCKET socket; /* fd */ local
[all...]
/PHP_TRUNK/main/streams/
H A Dxp_socket.c60 /* {{{ Generic socket stream operations */
67 if (!sock || sock->socket == -1) {
77 didwrite = send(sock->socket, buf, XP_SOCK_BUF_SIZE(count), (sock->is_blocked && ptimeout) ? MSG_DONTWAIT : 0);
89 retval = php_pollfd_for(sock->socket, POLLOUT, ptimeout);
126 if (!sock || sock->socket == -1) {
138 retval = php_pollfd_for(sock->socket, PHP_POLLREADABLE, ptimeout);
156 if (!sock || sock->socket == -1) {
166 nr_bytes = recv(sock->socket, buf, XP_SOCK_BUF_SIZE(count), (sock->is_blocked && sock->timeout.tv_sec != -1) ? MSG_DONTWAIT : 0);
196 if (sock->socket == -1)
197 sock->socket
[all...]
/PHP_TRUNK/main/
H A Dphp_network.h74 #include <sys/socket.h>
78 * since <sys/socket.h> defines them. */
282 php_socket_t socket; member in struct:_php_netstream_data_t
294 PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC );
312 #define php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_CC)
316 #define php_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_REL_CC)
H A Dphp_open_temporary_file.c36 #include <sys/socket.h>
41 #include <sys/socket.h>
H A Dnetwork.c44 #include <sys/socket.h>
66 #include <sys/socket.h>
202 s = socket(PF_INET6, SOCK_DGRAM, 0);
303 /* Connect to a socket using an interruptible connect with optional timeout.
305 * enable non-blocking mode on the socket.
420 * Returns the bound socket, or -1 on failure.
443 /* create a socket for this address */
444 sock = socket(sa->sa_family, socktype, 0);
709 /* Accept a client connection from a server socket,
768 * enable non-blocking mode on the socket
1090 _php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC) argument
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_rinit_hook.c58 int s = socket(AF_UNIX, SOCK_STREAM, 0);
66 zend_error(E_ERROR, "Unable to connect to UNIX domain socket at %s defined by phpdbg.path ini setting. Reason: %s", PHPDBG_WG(path), strerror(errno));
H A Dphpdbg_io.c38 #include <sys/socket.h>
293 if((sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol)) == -1) {
297 wrote = sprintf(buf, "Unable to create socket");
318 if (socket >= 0) {
H A Dphpdbg.c41 # include <sys/socket.h>
995 static void phpdbg_remote_close(int socket, FILE *stream) { argument
996 if (socket >= 0) {
997 phpdbg_close_socket(socket);
1006 static int phpdbg_remote_init(const char* address, unsigned short port, int server, int *socket, FILE **stream) { argument
1007 phpdbg_remote_close(*socket, *stream);
1022 *socket = accept(server, (struct sockaddr *) &address, &size);
1029 dup2(*socket, fileno(stdout));
1030 dup2(*socket, fileno(stdin));
1034 *stream = fdopen(*socket, "
1179 int socket = -1; local
[all...]
/PHP_TRUNK/win32/
H A Dsockets.c45 sock[0] = socket(domain, type, protocol);
66 sock[1] = socket(domain, type, protocol);
/PHP_TRUNK/ext/openssl/
H A Dxp_ssl.c198 /* SSL terminated (but socket may still be active) */
1639 if (!SSL_set_fd(sslsock->ssl_handle, sslsock->s.socket)) {
1796 if (SUCCESS == php_set_sock_blocking(sslsock->s.socket, 0)) {
1831 /* wait until something interesting happens in the socket. It may be a
1839 php_pollfd_for(sslsock->s.socket, (err == SSL_ERROR_WANT_READ) ?
1847 if (sslsock->s.is_blocked != blocked && SUCCESS == php_set_sock_blocking(sslsock->s.socket, blocked)) {
1921 * Perform IO (read or write) to an SSL socket. If we have a timeout, we switch to non-blocking mode
1949 if (timeout && php_set_sock_blocking(sslsock->s.socket, 0 TSRMLS_CC) == SUCCESS) {
1972 /* If the socket was originally blocking, set it back. */
1974 php_set_sock_blocking(sslsock->s.socket,
[all...]
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_nonapi.c64 char *hostname = NULL, *username=NULL, *passwd=NULL, *dbname=NULL, *socket=NULL; local
87 hostname = username = dbname = passwd = socket = NULL;
91 &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len) == FAILURE) {
109 &hostname, &hostname_len, &username, &username_len, &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len,
126 if (!socket_len || !socket) {
127 socket = MyG(default_socket);
157 hash_key = strpprintf(0, "mysqli_%s_%s%ld%s%s%s", SAFE_STR(hostname), SAFE_STR(socket),
238 if (mysql_real_connect(mysql->mysql, hostname, username, passwd, dbname, port, socket, flags) == NULL)
241 port, socket, flags, MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA) == NULL)
304 /* {{{ proto object mysqli_connect([string hostname [,string username [,string passwd [,string dbname [,int port [,string socket]]]]]])
[all...]

Completed in 77 milliseconds

12