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

123

/PHP_5_6/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_5_6/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_5_6/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_5_6/ext/filter/
H A Dlogical_filters.c469 if (url->host == NULL) {
473 e = url->host + strlen(url->host);
474 s = url->host;
491 /* some schemas allow the host to be empty */
492 (url->host == NULL && (strcmp(url->scheme, "mailto") && strcmp(url->scheme, "news") && strcmp(url->scheme, "file"))) ||
/PHP_5_6/ext/phar/
H A Ddirstream.c318 if (!resource->scheme || !resource->host || !resource->path) {
319 if (resource->host && !resource->path) {
320 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);
335 host_len = strlen(resource->host);
339 if (FAILURE == phar_get_archive(&phar, resource->host, host_len, NULL, 0, &error TSRMLS_CC)) {
344 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar file \"%s\" is unknown", resource->host);
442 if (!resource->scheme || !resource->host || !resource->path) {
454 host_len = strlen(resource->host);
456 if (FAILURE == phar_get_archive(&phar, resource->host, host_len, NULL, 0, &error TSRMLS_CC)) {
457 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);
241 if (FAILURE == phar_get_archive(&phar, resource->host, host_le
[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 Durl.c50 if (theurl->host)
51 efree(theurl->host);
299 /* check if we have a valid host, if we don't reject the string as url */
308 ret->host = estrndup(s, (p-s));
309 php_replace_controlchars_ex(ret->host, (p - s));
394 if (resource->host != NULL) RETVAL_STRING(resource->host, 1);
427 if (resource->host != NULL)
428 add_assoc_string(return_value, "host", resource->host,
[all...]
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;
730 hoststart = resource->host;
967 /* Must be same scheme (ftp/ftp or ftps/ftps), same host, and same port
975 !resource_from->host ||
976 !resource_to->host ||
977 strcmp(resource_from->host, resource_to->host) ||
989 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to connect to %s", resource_from->host);
[all...]
/PHP_5_6/main/
H A Dphp_ini.h40 PHPAPI void php_ini_activate_per_host_config(const char *host, uint host_len TSRMLS_DC);
H A Dphp_network.h227 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, char **error_string TSRMLS_DC);
230 PHPAPI php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port,
246 PHPAPI php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port,
289 /* open a connection to a host using php_hostconnect and return a stream */
290 PHPAPI php_stream *_php_stream_sock_open_host(const char *host, unsigned short port,
307 #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)
311 #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 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/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/fpm/tests/
H A Dinclude.inc89 function run_request($host, $port, $uri='/ping', $query='') {
91 $client = new Adoy\FastCGI\Client($host, $port);
/PHP_5_6/ext/ftp/
H A Dftp.h96 ftpbuf_t* ftp_open(const char *host, short port, long timeout_sec TSRMLS_DC);

Completed in 90 milliseconds

123