| /PHP_TRUNK/ext/mysqli/tests/ |
| H A D | clean_table.inc | 4 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 D | connect.inc | 11 $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 D | skipifconnectfailure.inc | 5 $link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
|
| H A D | table.inc | 4 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/ftp/tests/ |
| H A D | server.inc | 219 $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_TRUNK/ext/ldap/tests/ |
| H A D | connect.inc | 8 $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 D | skipifbindfailure.inc | 6 $link = ldap_connect($host, $port);
|
| /PHP_TRUNK/ext/mysql/tests/ |
| H A D | clean_table.inc | 5 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 D | connect.inc | 24 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 D | skipifconnectfailure.inc | 5 $myhost = sprintf("%s:%s", $host, $socket); 7 $myhost = sprintf("%s:%s", $host, $port);
|
| H A D | table.inc | 5 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/ftp/ |
| H A D | ftp.h | 96 ftpbuf_t* ftp_open(const char *host, short port, long timeout_sec TSRMLS_DC);
|
| /PHP_TRUNK/ext/interbase/ |
| H A D | ibase_service.c | 209 /* {{{ 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_TRUNK/ext/standard/ |
| H A D | fsock.c | 34 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 D | ftp_fopen_wrapper.c | 157 transport_len = spprintf(&transport, 0, "tcp://%s:%d", resource->host, resource->port); 353 /* skip over the host ip, to get the port */ 553 hoststart = resource->host; 728 hoststart = resource->host; 965 /* Must be same scheme (ftp/ftp or ftps/ftps), same host, and same port 973 !resource_from->host || 974 !resource_to->host || 975 strcmp(resource_from->host, resource_to->host) || 987 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to connect to %s", resource_from->host); [all...] |
| H A D | url.c | 50 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, 1); 431 if (resource->host != NULL) 432 add_assoc_string(return_value, "host", resource->host, [all...] |
| H A D | url.h | 27 char *host; member in struct:php_url
|
| /PHP_TRUNK/main/ |
| H A D | php_ini.h | 40 PHPAPI void php_ini_activate_per_host_config(const char *host, uint host_len TSRMLS_DC);
|
| H A D | php_network.h | 227 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 D | network.c | 169 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 1055 _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_TRUNK/main/streams/ |
| H A D | xp_socket.c | 527 char *host = NULL; local 552 host = estrndup(str, colon - str); 560 return host; 571 char *host = NULL; local 595 host = parse_ip_address(xparam, &portno TSRMLS_CC); 597 if (host == NULL) { 601 sock->socket = php_network_bind_socket_to_local_addr(host, portno, 607 if (host) { 608 efree(host); 617 char *host local [all...] |
| /PHP_TRUNK/ext/phar/ |
| H A D | dirstream.c | 340 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 D | stream.c | 87 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_TRUNK/ext/filter/ |
| H A D | logical_filters.c | 469 if (url->host == NULL) { 473 e = url->host + strlen(url->host); 474 s = url->host; 495 /* some schemas allow the host to be empty */ 496 (url->host == NULL && (strcmp(url->scheme, "mailto") && strcmp(url->scheme, "news") && strcmp(url->scheme, "file"))) ||
|
| /PHP_TRUNK/ext/soap/ |
| H A D | php_http.c | 130 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...] |