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

/PHP_TRUNK/ext/standard/
H A Durl.h27 char *host; member in struct:php_url
H A Dfsock.c34 char *host; local
54 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|lz/z/d", &host, &host_len, &port, &zerrno, &zerrstr, &timeout) == FAILURE) {
59 spprintf(&hashkey, 0, "pfsockopen__%s:" ZEND_LONG_FMT, host, port);
63 hostname_len = spprintf(&hostname, 0, "%s:" ZEND_LONG_FMT, host, port);
66 hostname = host;
95 php_error_docref(NULL, E_WARNING, "unable to connect to %s:" ZEND_LONG_FMT " (%s)", host, port, errstr == NULL ? "Unknown error" : ZSTR_VAL(errstr));
H A Dstreamsfuncs.c90 zend_string *host; local
104 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|z/z/dlr", &host, &zerrno, &zerrstr, &timeout, &flags, &zcontext) == FAILURE) {
111 spprintf(&hashkey, 0, "stream_socket_client__%s", ZSTR_VAL(host));
132 stream = php_stream_xport_create(ZSTR_VAL(host), ZSTR_LEN(host), REPORT_ERRORS,
139 /* host might contain binary characters */
140 zend_string *quoted_host = php_addslashes(host, 0);
177 char *host; local
188 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|z/z/lr", &host, &host_len, &zerrno, &zerrstr, &flags, &zcontext) == FAILURE) {
207 stream = php_stream_xport_create(host, host_le
[all...]
/PHP_TRUNK/
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.php375 * Collect information about the host system for our report
1020 $path = $url_bits['host'].$url_bits['path'];
1021 $host = $proxy['host']; variable
1028 $host = $url_bits['host']; variable
1035 $fs = fsockopen($host, $port, $errno, $errstr, 10);
1045 fwrite($fs, "Host: " . $host . "\r\n");
/PHP_TRUNK/ext/interbase/
H A Dibase_service.c206 /* {{{ proto resource ibase_service_attach(string host, string dba_username, string dba_password)
212 char buf[128], *host, *user, *pass, *loc; local
218 &host, &hlen, &user, &ulen, &pass, &plen)) {
226 user, isc_spb_password, (char)plen, pass, host);
244 svm->hostname = estrdup(host);
/PHP_TRUNK/ext/ftp/
H A Dphp_ftp.c49 ZEND_ARG_INFO(0, host)
56 ZEND_ARG_INFO(0, host)
356 /* {{{ proto resource ftp_connect(string host [, int port [, int timeout]])
361 char *host; local
366 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|ll", &host, &host_len, &port, &timeout_sec) == FAILURE) {
376 if (!(ftp = ftp_open(host, (short)port, timeout_sec))) {
392 /* {{{ proto resource ftp_ssl_connect(string host [, int port [, int timeout]])
397 char *host; local
402 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|ll", &host, &host_len, &port, &timeout_sec) == FAILURE) {
412 if (!(ftp = ftp_open(host, (shor
[all...]
H A Dftp.c124 ftp_open(const char *host, short port, zend_long timeout_sec) argument
137 ftp->fd = php_network_connect_socket_to_host(host,
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_structs.h416 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);
498 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);
606 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);
907 char *host; member in struct:st_mysqlnd_connection_data
H A Dmysqlnd.c127 if (conn->host) {
128 mnd_pefree(conn->host, pers);
129 conn->host = NULL;
787 const char * const host, const char * const user,
868 const char *host, const char *user,
896 DBG_INF_FMT("host=%s user=%s db=%s port=%u flags=%u persistent=%u state=%u",
897 host?host:"", user?user:"", db?db:"", port, mysql_flags,
932 if (!host || !host[
1145 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 ) argument
[all...]
/PHP_TRUNK/main/
H A Dfastcgi.c650 char host[MAXPATHLEN]; local
666 strncpy(host, path, s-path);
667 host[s-path] = '\0';
673 host[0] = '\0';
685 if (!*host || !strncmp(host, "*", sizeof("*")-1)) {
688 sa.sa_inet.sin_addr.s_addr = inet_addr(host);
692 if(strlen(host) > MAXFQDNLEN) {
695 hep = gethostbyname(host);
698 fcgi_log(FCGI_ERROR, "Cannot resolve host nam
[all...]
H A Dnetwork.c169 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, zend_string **error_string) argument
183 if (host == NULL) {
213 if ((n = getaddrinfo(host, NULL, &hints, &res))) {
247 if (!inet_aton(host, &in)) {
249 if(strlen(host) > MAXFQDNLEN) {
253 host_info = gethostbyname(host);
423 php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port, argument
433 num_addrs = php_network_getaddresses(host, socktype, &psal, error_string);
766 /* Connect to a remote host using an interruptible connect with optional timeout.
773 php_socket_t php_network_connect_socket_to_host(const char *host, unsigne argument
1114 _php_stream_sock_open_host(const char *host, unsigned short port, int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC) argument
[all...]
H A Dphp_ini.c300 zend_str_tolower(key, key_len); /* host names are case-insensitive. */
852 PHPAPI void php_ini_activate_per_host_config(const char *host, size_t host_len) argument
856 if (has_per_host_config && host && host_len) {
857 /* Search for source array matching the host from configuration_hash */
858 if ((tmp = zend_hash_str_find(&configuration_hash, host, host_len)) != NULL) {
/PHP_TRUNK/ext/imap/
H A Dphp_imap.c335 ZEND_ARG_INFO(0, host)
2648 /* {{{ proto string imap_rfc822_write_address(string mailbox, string host, string personal)
2649 Returns a properly formatted email address given the mailbox, host, and personal info */
2652 zend_string *mailbox, *host, *personal; local
2656 if (zend_parse_parameters(ZEND_NUM_ARGS(), "SSS", &mailbox, &host, &personal) == FAILURE) {
2666 if (host) {
2667 addr->host = cpystr(ZSTR_VAL(host));
2717 if (addresstmp->host) {
2718 add_property_string(&tovals, "host", addresstm
[all...]
/PHP_TRUNK/ext/openssl/
H A Dxp_ssl.c546 /* verify the host name presented in the peer certificate */
1343 "SNI_server_certs requires an array mapping host names to cert paths"
1351 "SNI_server_certs host cert array must not be empty"
1365 "SNI_server_certs array requires string host name keys"
2517 if (url->host) {
2518 const char * host = url->host; local
2520 size_t len = strlen(host);
2523 while (len && host[len-1] == '.') {
2528 url_name = pestrndup(host, le
[all...]
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c103 ZEND_ARG_INFO(0, host)
112 ZEND_ARG_INFO(0, host)
1275 char *host=NULL,*port=NULL,*options=NULL,*tty=NULL,*dbname=NULL,*connstring=NULL; local
1317 host = Z_STRVAL(args[0]);
1354 pgsql = PQsetdb(host, port, options, tty, dbname);
1389 le->ptr = PQsetdb(host,port,options,tty,dbname);
1462 pgsql = PQsetdb(host,port,options,tty,dbname);
1514 /* {{{ 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)
1730 Returns the host nam
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_http.c132 if ((name_len != sizeof("host")-1 ||
133 strncasecmp(s, "host", sizeof("host")-1) != 0) &&
165 char *host; local
178 host = Z_STRVAL_P(proxy_host);
182 host = phpurl->host;
229 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/main/streams/
H A Dxp_socket.c561 char *host = NULL; local
586 host = estrndup(str, colon - str);
594 return host;
605 char *host = NULL; local
632 host = parse_ip_address(xparam, &portno);
634 if (host == NULL) {
657 sock->socket = php_network_bind_socket_to_local_addr(host, portno,
664 if (host) {
665 efree(host);
674 char *host local
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c185 char *host; member in struct:php_cli_server
344 if (NULL != (val = zend_hash_str_find_ptr(&client->request.headers, "host", sizeof("host")-1))) {
649 sapi_cli_server_register_variable(track_vars_array, "SERVER_NAME", client->server->host);
1178 static php_socket_t php_network_listen_socket(const char *host, int *port, int socktype, int *af, socklen_t *socklen, zend_string **errstr) /* {{{ */ argument
1184 int num_addrs = php_network_getaddresses(host, socktype, &sal, errstr);
2158 if (server->host) {
2159 pefree(server->host, 1);
2182 char *host = NULL; local
2192 host
[all...]
/PHP_TRUNK/ext/ldap/
H A Dldap.c312 /* {{{ proto resource ldap_connect([string host [, int port [, string wallet [, string wallet_passwd [, int authmode]]]]])
316 char *host = NULL; local
333 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|slssl", &host, &hostlen, &port, &wallet, &walletlen, &walletpasswd, &walletpasswdlen, &authmode) != SUCCESS) {
341 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|sl", &host, &hostlen, &port) != SUCCESS) {
355 char *url = host;
365 snprintf( url, urllen, "ldap://%s:%ld", host ? host : "", port );
374 * We must try the original host and port information.
376 ldap = ldap_init(host, port);
383 if (url != host) {
[all...]
/PHP_TRUNK/win32/
H A Dsendmail.c94 {"Failed to resolve the host IP name"}, /* 10 */
192 // Input: 1) host: Name of the mail host where the SMTP server resides
203 PHPAPI int TSendMail(char *host, int *error, char **error_message, argument
212 if (host == NULL) {
215 } else if (strlen(host) >= HOST_NAME_LEN) {
219 strcpy(PW32G(mail_host), host); local
286 /* attempt to connect with mail host */
767 // Description: Connect to the mail host and receive the welcome message.
788 /* Get our own host nam
[all...]
/PHP_TRUNK/ext/pdo_mysql/
H A Dmysql_driver.c544 char *host = NULL, *unix_socket = NULL; local
550 { "host", "localhost", 0 },
750 host = vars[2].optval;
773 if (mysqlnd_connect(H->server, host, dbh->username, dbh->password, password_len, dbname, dbname_len,
776 if (mysql_real_connect(H->server, host, dbh->username, dbh->password, dbname, port, unix_socket, connect_opts) == NULL) {

Completed in 72 milliseconds