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

123

/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 Dconnect.inc11 $host = getenv("MYSQL_TEST_HOST") ? getenv("MYSQL_TEST_HOST") : "localhost";
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, $flags);
127 parent::__construct($host, $user, $passwd, $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);
/PHP_TRUNK/ext/ldap/tests/
H A Dconnect.inc8 $host = getenv("LDAP_TEST_HOST") ? getenv("LDAP_TEST_HOST") : "localhost";
16 function ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version) {
17 $link = ldap_connect($host, $port);
H A Dskipifbindfailure.inc6 $link = ldap_connect($host, $port);
/PHP_TRUNK/ext/mysql/tests/
H A Dclean_table.inc5 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
6 printf("[clean] Cannot connect to the server using host=%s/%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
7 $host, $myhost, $user, $db, $port, $socket);
H A Dconnect.inc24 function my_mysql_connect($host, $user, $passwd, $db, $port, $socket, $flags = NULL, $persistent = false) {
30 $host = sprintf("%s:%s", $host, $socket);
32 $host = sprintf("%s:%s", $host, $port);
35 $link = mysql_pconnect($host, $user, $passwd, $flags);
37 $link = mysql_connect($host, $user, $passwd, true, $flags);
41 printf("[000-a] Cannot connect using host '%s', user '%s', password '****', persistent = %d, [%d] %s\n",
42 $host, $user, ($persistent) ? 1 : 0,
63 $host
[all...]
H A Dskipifconnectfailure.inc5 $myhost = sprintf("%s:%s", $host, $socket);
7 $myhost = sprintf("%s:%s", $host, $port);
H A Dtable.inc5 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
6 printf("Cannot connect to the server using host=%s/%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
7 $host, $myhost, $user, $db, $port, $socket);
/PHP_TRUNK/ext/standard/
H A Durl.h27 char *host; member in struct:php_url
H A Dftp_fopen_wrapper.c158 transport_len = spprintf(&transport, 0, "tcp://%s:%d", resource->host, resource->port);
354 /* skip over the host ip, to get the port */
555 hoststart = resource->host;
722 hoststart = resource->host;
959 /* Must be same scheme (ftp/ftp or ftps/ftps), same host, and same port
967 !resource_from->host ||
968 !resource_to->host ||
969 strcmp(resource_from->host, resource_to->host) ||
981 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to connect to %s", resource_from->host);
[all...]
H A Dfsock.c34 char *host; local
50 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lz/z/d", &host, &host_len, &port, &zerrno, &zerrstr, &timeout) == FAILURE) {
55 spprintf(&hashkey, 0, "pfsockopen__%s:" ZEND_LONG_FMT, host, port);
59 hostname_len = spprintf(&hostname, 0, "%s:" ZEND_LONG_FMT, host, port);
62 hostname = host;
86 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s:" ZEND_LONG_FMT " (%s)", host, port, errstr == NULL ? "Unknown error" : errstr->val);
H A Durl.c50 if (theurl->host)
51 efree(theurl->host);
303 /* check if we have a valid host, if we don't reject the string as url */
312 ret->host = estrndup(s, (p-s));
313 php_replace_controlchars_ex(ret->host, (p - s));
398 if (resource->host != NULL) RETVAL_STRING(resource->host);
431 if (resource->host != NULL)
432 add_assoc_string(return_value, "host", resource->host);
[all...]
/PHP_TRUNK/ext/phar/
H A Ddirstream.c320 if (!resource->scheme || !resource->host || !resource->path) {
321 if (resource->host && !resource->path) {
322 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: no directory in \"%s\", must have at least phar://%s/ for root directory (always use full path to a new phar)", path, resource->host);
337 host_len = strlen(resource->host);
341 if (FAILURE == phar_get_archive(&phar, resource->host, host_len, NULL, 0, &error TSRMLS_CC)) {
346 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar file \"%s\" is unknown", resource->host);
444 if (!resource->scheme || !resource->host || !resource->path) {
456 host_len = strlen(resource->host);
458 if (FAILURE == phar_get_archive(&phar, resource->host, host_len, NULL, 0, &error TSRMLS_CC)) {
459 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: cannot create directory \"%s\" in phar \"%s\", error retrieving phar information: %s", resource->path+1, resource->host, erro
[all...]
H A Dstream.c87 resource->host = arch;
96 fprintf(stderr, "Host: %s\n", resource->host);
116 if (phar_open_or_create_filename(resource->host, arch_len, NULL, 0, 0, options, &phar, &error TSRMLS_CC) == FAILURE)
129 spprintf(&error, 0, "Cannot open cached phar '%s' as writeable, copy on write failed", resource->host);
139 if (phar_open_from_filename(resource->host, arch_len, NULL, 0, options, NULL, &error TSRMLS_CC) == FAILURE)
175 if (!resource->scheme || !resource->host || !resource->path) {
187 host_len = strlen(resource->host);
193 if (NULL == (idata = phar_get_or_create_entry_data(resource->host, host_len, internal_file, strlen(internal_file), mode, 0, &error, 1 TSRMLS_CC))) {
198 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: file \"%s\" could not be created in phar \"%s\"", internal_file, resource->host);
240 if (FAILURE == phar_get_archive(&phar, resource->host, host_le
[all...]
/PHP_TRUNK/main/
H A Dnetwork.c169 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, zend_string **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
428 num_addrs = php_network_getaddresses(host, socktype, &psal, error_string TSRMLS_CC);
761 /* Connect to a remote host using an interruptible connect with optional timeout.
768 php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port, argument
782 num_addrs = php_network_getaddresses(host, socktyp
1109 _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_network.h233 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, zend_string **error_string TSRMLS_DC);
236 PHPAPI php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port,
252 PHPAPI php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port,
295 /* open a connection to a host using php_hostconnect and return a stream */
296 PHPAPI php_stream *_php_stream_sock_open_host(const char *host, unsigned short port,
313 #define php_stream_sock_open_host(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype), (timeout), (persistent) STREAMS_CC TSRMLS_CC)
317 #define php_stream_sock_open_host_rel(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype), (timeout), (persistent) STREAMS_REL_CC TSRMLS_CC)
H A Dphp_ini.h41 PHPAPI void php_ini_activate_per_host_config(const char *host, uint host_len TSRMLS_DC);
/PHP_TRUNK/main/streams/
H A Dxp_socket.c544 char *host = NULL; local
569 host = estrndup(str, colon - str);
577 return host;
588 char *host = NULL; local
615 host = parse_ip_address(xparam, &portno TSRMLS_CC);
617 if (host == NULL) {
640 sock->socket = php_network_bind_socket_to_local_addr(host, portno,
647 if (host) {
648 efree(host);
657 char *host local
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c189 char *host; member in struct:php_cli_server
397 if (NULL != (val = zend_hash_str_find_ptr(&client->request.headers, "host", sizeof("host")-1))) {
697 sapi_cli_server_register_variable(track_vars_array, "SERVER_NAME", client->server->host TSRMLS_CC);
1210 static int php_network_listen_socket(const char *host, int *port, int socktype, int *af, socklen_t *socklen, zend_string **errstr TSRMLS_DC) /* {{{ */ argument
1216 int num_addrs = php_network_getaddresses(host, socktype, &sal, errstr TSRMLS_CC);
2162 if (server->host) {
2163 pefree(server->host, 1);
2186 char *host = NULL; local
2196 host
[all...]
/PHP_TRUNK/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_TRUNK/ext/soap/
H A Dphp_http.c128 if ((name_len != sizeof("host")-1 ||
129 strncasecmp(s, "host", sizeof("host")-1) != 0) &&
161 char *host; local
174 host = Z_STRVAL_P(proxy_host);
178 host = phpurl->host;
225 namelen = spprintf(&name, 0, "%s://%s:%d", protocol, host, port);
241 smart_str_appends(&soap_headers, phpurl->host);
246 smart_str_appends(&soap_headers, phpurl->host);
310 in_domain(const char *host, const char *domain) argument
[all...]
/PHP_TRUNK/ext/filter/
H A Dlogical_filters.c476 if (url->host == NULL) {
480 e = url->host + strlen(url->host);
481 s = url->host;
498 /* some schemas allow the host to be empty */
499 (url->host == NULL && (strcmp(url->scheme, "mailto") && strcmp(url->scheme, "news") && strcmp(url->scheme, "file"))) ||
/PHP_TRUNK/sapi/cgi/
H A Dfastcgi.c571 char host[MAXPATHLEN]; local
587 strncpy(host, path, s-path);
588 host[s-path] = '\0';
594 host[0] = '\0';
606 if (!*host || !strncmp(host, "*", sizeof("*")-1)) {
609 sa.sa_inet.sin_addr.s_addr = inet_addr(host);
613 hep = gethostbyname(host);
615 fprintf(stderr, "Cannot resolve host name '%s'!\n", host);
[all...]

Completed in 81 milliseconds

123