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

123

/PHP_5_3/ext/ftp/tests/
H A Dserver.inc219 $host = "$m[1].$m[2].$m[3].$m[4]";
228 if (!$fs = stream_socket_client("tcp://$host:$port")) {
281 if (!$fs = stream_socket_client("tcp://$host:$port")) {
325 else if (!$fs = stream_socket_client("tcp://$host:$port")) {
373 $host = "127.0.0.1";
/PHP_5_3/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_3/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_3/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_3/ext/filter/
H A Dlogical_filters.c461 if (url->host == NULL) {
465 e = url->host + strlen(url->host);
466 s = url->host;
487 /* some schemas allow the host to be empty */
488 (url->host == NULL && (strcmp(url->scheme, "mailto") && strcmp(url->scheme, "news") && strcmp(url->scheme, "file"))) ||
/PHP_5_3/ext/ftp/
H A Dftp.h96 ftpbuf_t* ftp_open(const char *host, short port, long timeout_sec TSRMLS_DC);
/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/snmp/
H A Dsnmp.c117 ZEND_ARG_INFO(0, host)
125 ZEND_ARG_INFO(0, host)
133 ZEND_ARG_INFO(0, host)
141 ZEND_ARG_INFO(0, host)
167 ZEND_ARG_INFO(0, host)
177 ZEND_ARG_INFO(0, host)
185 ZEND_ARG_INFO(0, host)
193 ZEND_ARG_INFO(0, host)
201 ZEND_ARG_INFO(0, host)
209 ZEND_ARG_INFO(0, host)
[all...]
/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.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 Durl.h27 char *host; member in struct:php_url
/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.h40 PHPAPI void php_ini_activate_per_host_config(const char *host, uint host_len TSRMLS_DC);
H A Dphp_network.h223 PHPAPI php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port,
239 PHPAPI php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port,
282 /* open a connection to a host using php_hostconnect and return a stream */
283 PHPAPI php_stream *_php_stream_sock_open_host(const char *host, unsigned short port,
300 #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)
304 #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)
/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/ext/phar/
H A Ddirstream.c340 if (!resource->scheme || !resource->host || !resource->path) {
341 if (resource->host && !resource->path) {
342 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);
357 host_len = strlen(resource->host);
361 if (FAILURE == phar_get_archive(&phar, resource->host, host_len, NULL, 0, &error TSRMLS_CC)) {
366 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar file \"%s\" is unknown", resource->host);
467 if (!resource->scheme || !resource->host || !resource->path) {
479 host_len = strlen(resource->host);
481 if (FAILURE == phar_get_archive(&phar, resource->host, host_len, NULL, 0, &error TSRMLS_CC)) {
482 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...]

Completed in 37 milliseconds

123