| /PHP_TRUNK/ |
| H A D | server-tests.php | 296 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 D | run-tests.php | 343 * Collect information about the host system for our report 974 $path = $url_bits['host'].$url_bits['path']; 975 $host = $proxy['host']; variable 982 $host = $url_bits['host']; variable 989 $fs = fsockopen($host, $port, $errno, $errstr, 10); 999 fwrite($fs, "Host: " . $host . "\r\n");
|
| /PHP_TRUNK/win32/ |
| H A D | sendmail.c | 108 {"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_TRUNK/ext/ftp/ |
| H A D | ftp.c | 124 ftp_open(const char *host, short port, long timeout_sec TSRMLS_DC) argument 137 ftp->fd = php_network_connect_socket_to_host(host,
|
| H A D | php_ftp.c | 49 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...] |
| /PHP_TRUNK/ext/imap/ |
| H A D | php_imap.c | 335 ZEND_ARG_INFO(0, host) 2597 /* {{{ proto string imap_rfc822_write_address(string mailbox, string host, string personal) 2598 Returns a properly formatted email address given the mailbox, host, and personal info */ 2601 char *mailbox, *host, *personal; local 2606 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss", &mailbox, &mailbox_len, &host, &host_len, &personal, &personal_len) == FAILURE) { 2616 if (host) { 2617 addr->host = cpystr(host); 2668 if (addresstmp->host) { 2669 add_property_string(tovals, "host", addresstm [all...] |
| /PHP_TRUNK/ext/interbase/ |
| H A D | ibase_service.c | 209 /* {{{ proto resource ibase_service_attach(string host, string dba_username, string dba_password) 215 char buf[128], *host, *user, *pass, *loc; local 221 &host, &hlen, &user, &ulen, &pass, &plen)) { 229 user, isc_spb_password, (char)plen, pass, host); 247 svm->hostname = estrdup(host);
|
| /PHP_TRUNK/ext/ldap/ |
| H A D | ldap.c | 280 /* {{{ proto resource ldap_connect([string host [, int port [, string wallet [, string wallet_passwd [, int authmode]]]]]) 284 char *host = NULL; local 301 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|slssl", &host, &hostlen, &port, &wallet, &walletlen, &walletpasswd, &walletpasswdlen, &authmode) != SUCCESS) { 309 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sl", &host, &hostlen, &port) != SUCCESS) { 322 if (host != NULL && strchr(host, '/')) { 325 rc = ldap_initialize(&ldap, host); 332 ldap = ldap_init(host, port); 335 ldap = ldap_open(host, port);
|
| /PHP_TRUNK/ext/mssql/ |
| H A D | php_mssql.c | 541 char *host = NULL, *user = NULL, *passwd = NULL; local 549 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sssb", &host, &host_len, &user, &user_len, &passwd, &passwd_len, &new_link) == FAILURE) { 555 host[255] = '\0'; 573 hashed_details_length = spprintf(&hashed_details, 0, "mssql_%s__", host); 576 hashed_details_length = spprintf(&hashed_details, 0, "mssql_%s_%s_", host, user); 580 hashed_details_length = spprintf(&hashed_details, 0, "mssql_%s_%s_%s", host, user, passwd); 654 if ((mssql.link = dbopen(mssql.login, host)) == FAIL) { 655 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to connect to server: %s", (host == NULL ? "" : host)); 724 if ((mssql_ptr->link=dbopen(mssql_ptr->login,host)) [all...] |
| /PHP_TRUNK/ext/pdo_mysql/ |
| H A D | mysql_driver.c | 540 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_TRUNK/ext/standard/ |
| H A D | fsock.c | 34 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 D | url.h | 27 char *host; member in struct:php_url
|
| H A D | streamsfuncs.c | 88 char *host; local 103 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|zzdlr", &host, &host_len, &zerrno, &zerrstr, &timeout, &flags, &zcontext) == FAILURE) { 110 spprintf(&hashkey, 0, "stream_socket_client__%s", host); 131 stream = php_stream_xport_create(host, host_len, REPORT_ERRORS, 138 /* host might contain binary characters */ 139 char *quoted_host = php_addslashes(host, host_len, NULL, 0 TSRMLS_CC); 177 char *host; local 188 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|zzlr", &host, &host_len, &zerrno, &zerrstr, &flags, &zcontext) == FAILURE) { 207 stream = php_stream_xport_create(host, host_len, REPORT_ERRORS, 212 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s (%s)", host, errst [all...] |
| /PHP_TRUNK/ext/sybase_ct/ |
| H A D | php_sybase_ct.c | 46 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_TRUNK/main/streams/ |
| H A D | xp_socket.c | 527 char *host = NULL; local 552 host = estrndup(str, colon - str); 560 return host; 571 char *host = NULL; local 595 host = parse_ip_address(xparam, &portno TSRMLS_CC); 597 if (host == NULL) { 601 sock->socket = php_network_bind_socket_to_local_addr(host, portno, 607 if (host) { 608 efree(host); 617 char *host local [all...] |
| /PHP_TRUNK/sapi/cgi/ |
| H A D | fastcgi.c | 572 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_TRUNK/ext/pgsql/ |
| H A D | pgsql.c | 96 ZEND_ARG_INFO(0, host) 105 ZEND_ARG_INFO(0, host) 1096 char *host=NULL,*port=NULL,*options=NULL,*tty=NULL,*dbname=NULL,*connstring=NULL; local 1135 host = Z_STRVAL_PP(args[0]); 1171 pgsql=PQsetdb(host,port,options,tty,dbname); 1206 le->ptr=PQsetdb(host,port,options,tty,dbname); 1265 pgsql = PQsetdb(host,port,options,tty,dbname); 1316 /* {{{ proto resource pg_connect(string connection_string[, int connect_type] | [string host, string port [, string options [, string tty,]]] string database) 1324 /* {{{ proto resource pg_pconnect(string connection_string | [string host, string port [, string options [, string tty,]]] string database) 1488 Returns the host nam [all...] |
| /PHP_TRUNK/ext/openssl/ |
| H A D | xp_ssl.c | 881 if (url->host) { 882 const char * host = url->host; local 884 size_t len = strlen(host); 887 while (len && host[len-1] == '.') { 892 sni = pestrndup(host, len, is_persistent);
|
| /PHP_TRUNK/main/ |
| H A D | network.c | 169 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 1055 _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...] |
| H A D | php_ini.c | 303 zend_str_tolower(key, key_len); /* host names are case-insensitive. */ 842 PHPAPI void php_ini_activate_per_host_config(const char *host, uint host_len TSRMLS_DC) argument 846 if (has_per_host_config && host && host_len) { 847 /* Search for source array matching the host from configuration_hash */ 848 if (zend_hash_find(&configuration_hash, host, host_len, (void **) &tmp) == SUCCESS) {
|
| /PHP_TRUNK/sapi/cli/ |
| H A D | php_cli_server.c | 186 char *host; member in struct:php_cli_server 636 sapi_cli_server_register_variable(track_vars_array, "SERVER_NAME", client->server->host TSRMLS_CC); 1150 static int php_network_listen_socket(const char *host, int *port, int socktype, int *af, socklen_t *socklen, char **errstr TSRMLS_DC) /* {{{ */ argument 1156 int num_addrs = php_network_getaddresses(host, socktype, &sal, errstr TSRMLS_CC); 2081 if (server->host) { 2082 pefree(server->host, 1); 2103 char *host = NULL; local 2113 host = pestrdup(addr + 1, 1); 2114 if (!host) { 2117 p = strchr(host, ']'); [all...] |
| /PHP_TRUNK/ext/soap/ |
| H A D | php_http.c | 130 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_TRUNK/ext/mysqlnd/ |
| H A D | mysqlnd.c | 128 if (conn->host) { 129 mnd_pefree(conn->host, pers); 130 conn->host = NULL; 752 const char * const host, const char * const user, 832 const char *host, const char *user, 860 DBG_INF_FMT("host=%s user=%s db=%s port=%u flags=%u persistent=%u state=%u", 861 host?host:"", user?user:"", db?db:"", port, mysql_flags, 896 if (!host || !host[ 1109 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 TSRMLS_DC) argument [all...] |
| H A D | mysqlnd_structs.h | 414 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); 496 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); 596 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); 868 char *host; member in struct:st_mysqlnd_connection_data
|
| /PHP_TRUNK/ext/mysql/ |
| H A D | php_mysql.c | 709 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 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 TSRMLS_CC) == NULL) 1014 if (mysql_real_connect(mysql->conn, host, use [all...] |