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

/PHP_5_3/
H A Drun-tests.php341 * Collect information about the host system for our report
967 $path = $url_bits['host'].$url_bits['path'];
968 $host = $proxy['host']; variable
975 $host = $url_bits['host']; variable
982 $fs = fsockopen($host, $port, $errno, $errstr, 10);
992 fwrite($fs, "Host: " . $host . "\r\n");
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...]
/PHP_5_3/win32/
H A Dsendmail.c107 {"Failed to resolve the host IP name"}, /* 10 */
201 // Input: 1) host: Name of the mail host where the SMTP server resides
212 PHPAPI int TSendMail(char *host, int *error, char **error_message, argument
225 if (host == NULL) {
228 } else if (strlen(host) >= HOST_NAME_LEN) {
232 strcpy(MailHost, host);
284 /* attempt to connect with mail host */
762 // Description: Connect to the mail host and receive the welcome message.
782 /* Get our own host nam
[all...]
/PHP_5_3/ext/ftp/
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,
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...]
/PHP_5_3/ext/imap/
H A Dphp_imap.c335 ZEND_ARG_INFO(0, host)
2605 /* {{{ proto string imap_rfc822_write_address(string mailbox, string host, string personal)
2606 Returns a properly formatted email address given the mailbox, host, and personal info */
2609 char *mailbox, *host, *personal; local
2614 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss", &mailbox, &mailbox_len, &host, &host_len, &personal, &personal_len) == FAILURE) {
2624 if (host) {
2625 addr->host = cpystr(host);
2676 if (addresstmp->host) {
2677 add_property_string(tovals, "host", addresstm
[all...]
/PHP_5_3/ext/interbase/
H A Dibase_service.c209 /* {{{ 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_5_3/ext/ldap/
H A Dldap.c280 /* {{{ 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_5_3/ext/mssql/
H A Dphp_mssql.c541 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_5_3/ext/openssl/
H A Dxp_ssl.c865 if (url->host) {
866 const char * host = url->host; local
868 size_t len = strlen(host);
871 while (len && host[len-1] == '.') {
876 sni = pestrndup(host, len, is_persistent);
/PHP_5_3/ext/pdo_mysql/
H A Dmysql_driver.c568 char *host = NULL, *unix_socket = NULL; local
574 { "host", "localhost", 0 },
753 host = vars[2].optval;
771 if (mysqlnd_connect(H->server, host, dbh->username, dbh->password, password_len, dbname, dbname_len,
774 if (mysql_real_connect(H->server, host, dbh->username, dbh->password, dbname, port, unix_socket, connect_opts) == NULL) {
/PHP_5_3/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
175 host = Z_STRVAL_PP(proxy_host);
179 host = phpurl->host;
192 namelen = spprintf(&name, 0, "%s://%s:%d", (use_ssl && !*use_proxy)? "ssl" : "tcp", host, port);
210 smart_str_appends(&soap_headers, phpurl->host);
215 smart_str_appends(&soap_headers, phpurl->host);
252 in_domain(const char *host, const char *domain) argument
[all...]
/PHP_5_3/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.c88 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, ENFORCE_SAFE_MODE | 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, ENFORCE_SAFE_MODE | REPORT_ERRORS,
212 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s (%s)", host, errst
[all...]
/PHP_5_3/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_3/main/
H A Dnetwork.c166 static int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, char **error_string TSRMLS_DC) argument
180 if (host == NULL) {
210 if ((n = getaddrinfo(host, NULL, &hints, &res))) {
244 if (!inet_aton(host, &in)) {
246 host_info = gethostbyname(host);
415 php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port, argument
424 num_addrs = php_network_getaddresses(host, socktype, &psal, error_string TSRMLS_CC);
753 /* Connect to a remote host using an interruptible connect with optional timeout.
760 php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port, argument
774 num_addrs = php_network_getaddresses(host, socktyp
1052 _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 Dphp_ini.c303 zend_str_tolower(key, key_len); /* host names are case-insensitive. */
866 PHPAPI void php_ini_activate_per_host_config(const char *host, uint host_len TSRMLS_DC) argument
870 if (has_per_host_config && host && host_len) {
871 /* Search for source array matching the host from configuration_hash */
872 if (zend_hash_find(&configuration_hash, host, host_len, (void **) &tmp) == SUCCESS) {
/PHP_5_3/main/streams/
H A Dxp_socket.c531 char *host = NULL; local
556 host = estrndup(str, colon - str);
564 return host;
575 char *host = NULL; local
599 host = parse_ip_address(xparam, &portno TSRMLS_CC);
601 if (host == NULL) {
605 sock->socket = php_network_bind_socket_to_local_addr(host, portno,
611 if (host) {
612 efree(host);
621 char *host local
[all...]
/PHP_5_3/sapi/cgi/
H A Dfastcgi.c348 char host[MAXPATHLEN]; local
364 strncpy(host, path, s-path);
365 host[s-path] = '\0';
371 host[0] = '\0';
383 if (!*host || !strncmp(host, "*", sizeof("*")-1)) {
386 sa.sa_inet.sin_addr.s_addr = inet_addr(host);
390 hep = gethostbyname(host);
392 fprintf(stderr, "Cannot resolve host name '%s'!\n", host);
[all...]
/PHP_5_3/ext/mysqlnd/
H A Dmysqlnd_structs.h340 typedef enum_func_status (*func_mysqlnd_conn__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);
735 char *host; member in struct:st_mysqlnd_connection
H A Dmysqlnd.c134 if (conn->host) {
135 DBG_INF("Freeing host");
136 mnd_pefree(conn->host, pers);
137 conn->host = NULL;
549 const char *host, const char *user,
567 DBG_INF_FMT("host=%s user=%s db=%s port=%u flags=%u persistent=%u state=%u",
568 host?host:"", user?user:"", db?db:"", port, mysql_flags,
597 if (!host || !host[
858 mysqlnd_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) argument
[all...]
/PHP_5_3/ext/mysql/
H A Dphp_mysql.c679 efree(host); \
692 char *user=NULL, *passwd=NULL, *host_and_port=NULL, *socket=NULL, *tmp=NULL, *host=NULL; local
735 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "SQL safe mode in effect - ignoring host/user/password information");
790 host = estrndup(host_and_port, tmp-host_and_port);
803 host = host_and_port;
853 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL)
855 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socket, client_flags TSRMLS_CC) == NULL)
901 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL)
903 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socket, client_flags TSRMLS_CC) == NULL)
980 if (mysql_real_connect(mysql->conn, host, use
[all...]
/PHP_5_3/ext/pgsql/
H A Dpgsql.c96 ZEND_ARG_INFO(0, host)
105 ZEND_ARG_INFO(0, host)
1077 char *host=NULL,*port=NULL,*options=NULL,*tty=NULL,*dbname=NULL,*connstring=NULL; local
1116 host = Z_STRVAL_PP(args[0]);
1152 pgsql=PQsetdb(host,port,options,tty,dbname);
1187 le->ptr=PQsetdb(host,port,options,tty,dbname);
1246 pgsql = PQsetdb(host,port,options,tty,dbname);
1297 /* {{{ proto resource pg_connect(string connection_string[, int connect_type] | [string host, string port [, string options [, string tty,]]] string database)
1305 /* {{{ proto resource pg_pconnect(string connection_string | [string host, string port [, string options [, string tty,]]] string database)
1469 Returns the host nam
[all...]

Completed in 53 milliseconds