Searched defs:host (Results 1 - 25 of 25) sorted by relevance

/PHP_5_6/
H A Dserver-tests.php296 if (!isset($this->urlparts['host'])) {
297 $this->urlparts['host']='127.0.0.1';
337 $fullpath = 'http://'.$this->urlparts['host'].':'.$this->urlparts['port'].$fullpath;
343 $headers['Host'] = $this->urlparts['host'];
364 $host = $this->urlparts['host']; variable
367 $host = $this->options['proxy_host']; variable
372 $fp = fsockopen($host, $port, $this->errno, $this->errmsg, $this->timeout);
374 $fp = fsockopen($host, $port, $this->errno, $this->errmsg);
377 $this->errmsg = "Connect Error to $host
[all...]
H A Drun-tests.php344 * Collect information about the host system for our report
986 $path = $url_bits['host'].$url_bits['path'];
987 $host = $proxy['host']; variable
994 $host = $url_bits['host']; variable
1001 $fs = fsockopen($host, $port, $errno, $errstr, 10);
1011 fwrite($fs, "Host: " . $host . "\r\n");
/PHP_5_6/win32/
H A Dsendmail.c108 {"Failed to resolve the host IP name"}, /* 10 */
202 // Input: 1) host: Name of the mail host where the SMTP server resides
213 PHPAPI int TSendMail(char *host, int *error, char **error_message, argument
226 if (host == NULL) {
229 } else if (strlen(host) >= HOST_NAME_LEN) {
233 strcpy(MailHost, host);
285 /* attempt to connect with mail host */
763 // Description: Connect to the mail host and receive the welcome message.
783 /* Get our own host nam
[all...]
/PHP_5_6/ext/ftp/
H A Dphp_ftp.c49 ZEND_ARG_INFO(0, host)
56 ZEND_ARG_INFO(0, host)
340 /* {{{ proto resource ftp_connect(string host [, int port [, int timeout]])
345 char *host; local
350 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ll", &host, &host_len, &port, &timeout_sec) == FAILURE) {
360 if (!(ftp = ftp_open(host, (short)port, timeout_sec TSRMLS_CC))) {
376 /* {{{ proto resource ftp_ssl_connect(string host [, int port [, int timeout]])
381 char *host; local
386 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ll", &host, &host_len, &port, &timeout_sec) == FAILURE) {
396 if (!(ftp = ftp_open(host, (shor
[all...]
H A Dftp.c124 ftp_open(const char *host, short port, long timeout_sec TSRMLS_DC) argument
137 ftp->fd = php_network_connect_socket_to_host(host,
/PHP_5_6/ext/imap/
H A Dphp_imap.c335 ZEND_ARG_INFO(0, host)
2596 /* {{{ proto string imap_rfc822_write_address(string mailbox, string host, string personal)
2597 Returns a properly formatted email address given the mailbox, host, and personal info */
2600 char *mailbox, *host, *personal; local
2605 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss", &mailbox, &mailbox_len, &host, &host_len, &personal, &personal_len) == FAILURE) {
2615 if (host) {
2616 addr->host = cpystr(host);
2667 if (addresstmp->host) {
2668 add_property_string(tovals, "host", addresstm
[all...]
/PHP_5_6/ext/mssql/
H A Dphp_mssql.c546 char *host = NULL, *user = NULL, *passwd = NULL; local
554 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sssb", &host, &host_len, &user, &user_len, &passwd, &passwd_len, &new_link) == FAILURE) {
560 host[255] = '\0';
578 hashed_details_length = spprintf(&hashed_details, 0, "mssql_%s__", host);
581 hashed_details_length = spprintf(&hashed_details, 0, "mssql_%s_%s_", host, user);
585 hashed_details_length = spprintf(&hashed_details, 0, "mssql_%s_%s_%s", host, user, passwd);
659 if ((mssql.link = dbopen(mssql.login, host)) == FAIL) {
660 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to connect to server: %s", (host == NULL ? "" : host));
729 if ((mssql_ptr->link=dbopen(mssql_ptr->login,host))
[all...]
/PHP_5_6/ext/standard/
H A Dfsock.c34 char *host; local
50 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lzzd", &host, &host_len, &port, &zerrno, &zerrstr, &timeout) == FAILURE) {
55 spprintf(&hashkey, 0, "pfsockopen__%s:%ld", host, port);
59 hostname_len = spprintf(&hostname, 0, "%s:%ld", host, port);
62 hostname = host;
86 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s:%ld (%s)", host, port, errstr == NULL ? "Unknown error" : errstr);
H A Durl.h27 char *host; member in struct:php_url
H A Dstreamsfuncs.c90 char *host; local
105 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|zzdlr", &host, &host_len, &zerrno, &zerrstr, &timeout, &flags, &zcontext) == FAILURE) {
112 spprintf(&hashkey, 0, "stream_socket_client__%s", host);
133 stream = php_stream_xport_create(host, host_len, REPORT_ERRORS,
140 /* host might contain binary characters */
141 char *quoted_host = php_addslashes(host, host_len, NULL, 0 TSRMLS_CC);
179 char *host; local
190 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|zzlr", &host, &host_len, &zerrno, &zerrstr, &flags, &zcontext) == FAILURE) {
209 stream = php_stream_xport_create(host, host_len, REPORT_ERRORS,
214 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s (%s)", host, errst
[all...]
/PHP_5_6/ext/sybase_ct/
H A Dphp_sybase_ct.c46 ZEND_ARG_INFO(0, host)
55 ZEND_ARG_INFO(0, host)
629 static int php_sybase_do_connect_internal(sybase_link *sybase, char *host, char *user, char *passwd, char *charset, char *appname TSRMLS_DC) argument
712 if (ct_connect(sybase->connection, host, CS_NULLTERM)!=CS_SUCCEED) {
731 char *user = NULL, *passwd = NULL, *host = NULL, *charset = NULL, *appname = NULL; local
737 host= user= passwd= charset= appname= NULL;
739 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!s!s!s!s!", &host, &len, &user, &len, &passwd, &len, &charset, &len, &appname, &len) == FAILURE) {
743 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!s!s!s!s!b", &host, &len, &user, &len, &passwd, &len, &charset, &len, &appname, &len, &new) == FAILURE) {
751 host ? host
[all...]
/PHP_5_6/main/
H A Dphp_ini.c303 zend_str_tolower(key, key_len); /* host names are case-insensitive. */
865 PHPAPI void php_ini_activate_per_host_config(const char *host, uint host_len TSRMLS_DC) argument
869 if (has_per_host_config && host && host_len) {
870 /* Search for source array matching the host from configuration_hash */
871 if (zend_hash_find(&configuration_hash, host, host_len, (void **) &tmp) == SUCCESS) {
H A Dnetwork.c169 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, char **error_string TSRMLS_DC) argument
183 if (host == NULL) {
213 if ((n = getaddrinfo(host, NULL, &hints, &res))) {
247 if (!inet_aton(host, &in)) {
249 host_info = gethostbyname(host);
418 php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port, argument
427 num_addrs = php_network_getaddresses(host, socktype, &psal, error_string TSRMLS_CC);
756 /* Connect to a remote host using an interruptible connect with optional timeout.
763 php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port, argument
777 num_addrs = php_network_getaddresses(host, socktyp
1057 _php_stream_sock_open_host(const char *host, unsigned short port, int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC TSRMLS_DC) argument
[all...]
/PHP_5_6/ext/interbase/
H A Dibase_service.c207 /* {{{ proto resource ibase_service_attach(string host, string dba_username, string dba_password)
213 char buf[128], *host, *user, *pass, *loc; local
219 &host, &hlen, &user, &ulen, &pass, &plen)) {
227 user, isc_spb_password, (char)plen, pass, host);
245 svm->hostname = estrdup(host);
/PHP_5_6/ext/mysql/
H A Dphp_mysql.c709 efree(host); \
722 char *user=NULL, *passwd=NULL, *host_and_port=NULL, *socket=NULL, *tmp=NULL, *host=NULL; local
769 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "SQL safe mode in effect - ignoring host/user/password information");
824 host = estrndup(host_and_port, tmp-host_and_port);
837 host = host_and_port;
887 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL)
889 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socket, client_flags, MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA TSRMLS_CC) == NULL)
935 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL)
937 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socket, client_flags, MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA TSRMLS_CC) == NULL)
1014 if (mysql_real_connect(mysql->conn, host, use
[all...]
/PHP_5_6/ext/pdo_mysql/
H A Dmysql_driver.c540 char *host = NULL, *unix_socket = NULL; local
546 { "host", "localhost", 0 },
736 host = vars[2].optval;
754 if (mysqlnd_connect(H->server, host, dbh->username, dbh->password, password_len, dbname, dbname_len,
757 if (mysql_real_connect(H->server, host, dbh->username, dbh->password, dbname, port, unix_socket, connect_opts) == NULL) {
/PHP_5_6/ext/pgsql/
H A Dpgsql.c102 ZEND_ARG_INFO(0, host)
111 ZEND_ARG_INFO(0, host)
1273 char *host=NULL,*port=NULL,*options=NULL,*tty=NULL,*dbname=NULL,*connstring=NULL; local
1312 host = Z_STRVAL_PP(args[0]);
1348 pgsql=PQsetdb(host,port,options,tty,dbname);
1383 le->ptr=PQsetdb(host,port,options,tty,dbname);
1459 pgsql = PQsetdb(host,port,options,tty,dbname);
1511 /* {{{ proto resource pg_connect(string connection_string[, int connect_type] | [string host, string port [, string options [, string tty,]]] string database)
1544 /* {{{ proto resource pg_pconnect(string connection_string | [string host, string port [, string options [, string tty,]]] string database)
1731 Returns the host nam
[all...]
/PHP_5_6/sapi/cli/
H A Dphp_cli_server.c188 char *host; member in struct:php_cli_server
458 if (SUCCESS == zend_hash_find(&client->request.headers, "host", sizeof("host"), (void**)&val)) {
769 sapi_cli_server_register_variable(track_vars_array, "SERVER_NAME", client->server->host TSRMLS_CC);
1283 static int php_network_listen_socket(const char *host, int *port, int socktype, int *af, socklen_t *socklen, char **errstr TSRMLS_DC) /* {{{ */ argument
1289 int num_addrs = php_network_getaddresses(host, socktype, &sal, errstr TSRMLS_CC);
2218 if (server->host) {
2219 pefree(server->host, 1);
2240 char *host = NULL; local
2250 host
[all...]
/PHP_5_6/ext/mysqlnd/
H A Dmysqlnd.c128 if (conn->host) {
129 mnd_pefree(conn->host, pers);
130 conn->host = NULL;
776 const char * const host, const char * const user,
857 const char *host, const char *user,
885 DBG_INF_FMT("host=%s user=%s db=%s port=%u flags=%u persistent=%u state=%u",
886 host?host:"", user?user:"", db?db:"", port, mysql_flags,
921 if (!host || !host[
1134 mysqlnd_connect(MYSQLND * conn_handle, const char * host, const char * user, const char * passwd, unsigned int passwd_len, const char * db, unsigned int db_len, unsigned int port, const char * socket_or_pipe, unsigned int mysql_flags, unsigned int client_api_flags TSRMLS_DC) argument
[all...]
H A Dmysqlnd_structs.h417 typedef enum_func_status (*func_mysqlnd_conn_data__connect)(MYSQLND_CONN_DATA * conn, const char * host, const char * user, const char * passwd, unsigned int passwd_len, const char * db, unsigned int db_len, unsigned int port, const char * socket_or_pipe, unsigned int mysql_flags TSRMLS_DC);
499 typedef enum_func_status (*func_mysqlnd_conn_data__connect_handshake)(MYSQLND_CONN_DATA * conn, const char * const host, const char * const user, const char * const passwd, const unsigned int passwd_len, const char * const db, const unsigned int db_len, const unsigned int mysql_flags TSRMLS_DC);
607 typedef enum_func_status (*func_mysqlnd_data__connect)(MYSQLND * conn, const char * host, const char * user, const char * passwd, unsigned int passwd_len, const char * db, unsigned int db_len, unsigned int port, const char * socket_or_pipe, unsigned int mysql_flags TSRMLS_DC);
906 char *host; member in struct:st_mysqlnd_connection_data
/PHP_5_6/main/streams/
H A Dxp_socket.c527 char *host = NULL; local
552 host = estrndup(str, colon - str);
560 return host;
571 char *host = NULL; local
596 host = parse_ip_address(xparam, &portno TSRMLS_CC);
598 if (host == NULL) {
602 sock->socket = php_network_bind_socket_to_local_addr(host, portno,
608 if (host) {
609 efree(host);
618 char *host local
[all...]
/PHP_5_6/ext/soap/
H A Dphp_http.c130 if ((name_len != sizeof("host")-1 ||
131 strncasecmp(s, "host", sizeof("host")-1) != 0) &&
163 char *host; local
176 host = Z_STRVAL_PP(proxy_host);
180 host = phpurl->host;
227 namelen = spprintf(&name, 0, "%s://%s:%d", protocol, host, port);
245 smart_str_appends(&soap_headers, phpurl->host);
250 smart_str_appends(&soap_headers, phpurl->host);
314 in_domain(const char *host, const char *domain) argument
[all...]
/PHP_5_6/sapi/cgi/
H A Dfastcgi.c572 char host[MAXPATHLEN]; local
588 strncpy(host, path, s-path);
589 host[s-path] = '\0';
595 host[0] = '\0';
607 if (!*host || !strncmp(host, "*", sizeof("*")-1)) {
610 sa.sa_inet.sin_addr.s_addr = inet_addr(host);
614 hep = gethostbyname(host);
616 fprintf(stderr, "Cannot resolve host name '%s'!\n", host);
[all...]
/PHP_5_6/ext/ldap/
H A Dldap.c295 /* {{{ proto resource ldap_connect([string host [, int port [, string wallet [, string wallet_passwd [, int authmode]]]]])
299 char *host = NULL; local
316 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|slssl", &host, &hostlen, &port, &wallet, &walletlen, &walletpasswd, &walletpasswdlen, &authmode) != SUCCESS) {
324 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sl", &host, &hostlen, &port) != SUCCESS) {
337 if (host != NULL && strchr(host, '/')) {
340 rc = ldap_initialize(&ldap, host);
347 ldap = ldap_init(host, port);
350 ldap = ldap_open(host, port);
/PHP_5_6/ext/openssl/
H A Dxp_ssl.c485 /* verify the host name presented in the peer certificate */
1301 "SNI_server_certs requires an array mapping host names to cert paths"
1309 "SNI_server_certs host cert array must not be empty"
1325 "SNI_server_certs array requires string host name keys"
2190 if (url->host) {
2191 const char * host = url->host; local
2193 size_t len = strlen(host);
2196 while (len && host[len-1] == '.') {
2201 url_name = pestrndup(host, le
[all...]

Completed in 64 milliseconds