| /PHP_5_3/ |
| H A D | run-tests.php | 969 if (empty($proxy['port'])) { 970 $proxy['port'] = 80; 972 $port = $proxy['port']; variable 976 $port = empty($url_bits['port']) ? 80 : $port = $url_bits['port']; variable 982 $fs = fsockopen($host, $port, $errno, $errstr, 10);
|
| H A D | server-tests.php | 299 if (!isset($this->urlparts['port'])) { 300 $this->urlparts['port'] = 80; 337 $fullpath = 'http://'.$this->urlparts['host'].':'.$this->urlparts['port'].$fullpath; 365 $port = $this->urlparts['port']; variable 368 $port = isset($this->options['proxy_port'])?$this->options['proxy_port']:8080; 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:$port";
|
| /PHP_5_3/ext/ftp/ |
| H A D | ftp.c | 114 /* IP and port conversion box */ 124 ftp_open(const char *host, short port, long timeout_sec TSRMLS_DC) argument 138 (unsigned short) (port ? port : 21), SOCK_STREAM, 731 /* parse out the port */ 761 /* parse out the IP and port */
|
| H A D | php_ftp.c | 50 ZEND_ARG_INFO(0, port) 57 ZEND_ARG_INFO(0, port) 340 /* {{{ proto resource ftp_connect(string host [, int port [, int timeout]]) 347 long port = 0; local 350 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ll", &host, &host_len, &port, &timeout_sec) == FAILURE) { 360 if (!(ftp = ftp_open(host, (short)port, timeout_sec TSRMLS_CC))) { 376 /* {{{ proto resource ftp_ssl_connect(string host [, int port [, int timeout]]) 383 long port = 0; local 386 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ll", &host, &host_len, &port, &timeout_sec) == FAILURE) { 396 if (!(ftp = ftp_open(host, (short)port, timeout_se [all...] |
| /PHP_5_3/ext/ldap/ |
| H A D | ldap.c | 280 /* {{{ proto resource ldap_connect([string host [, int port [, string wallet [, string wallet_passwd [, int authmode]]]]]) 286 long port = 389; /* Default port */ local 301 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|slssl", &host, &hostlen, &port, &wallet, &walletlen, &walletpasswd, &walletpasswdlen, &authmode) != SUCCESS) { 309 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sl", &host, &hostlen, &port) != SUCCESS) { 332 ldap = ldap_init(host, port); 335 ldap = ldap_open(host, port); 2191 ZEND_ARG_INFO(0, port)
|
| /PHP_5_3/ext/mysqli/ |
| H A D | mysqli_nonapi.c | 67 long port = 0, flags = 0; local 92 &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len) == FAILURE) { 110 &hostname, &hostname_len, &username, &username_len, &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len, 130 if (!port){ 131 port = MyG(default_port); 159 port, SAFE_STR(username), SAFE_STR(dbname), 239 if (mysql_real_connect(mysql->mysql, hostname, username, passwd, dbname, port, socket, flags) == NULL) 242 port, socket, flags TSRMLS_CC) == NULL) 309 /* {{{ proto object mysqli_connect([string hostname [,string username [,string passwd [,string dbname [,int port [,string socket]]]]]])
|
| /PHP_5_3/ext/pdo_mysql/ |
| H A D | mysql_driver.c | 569 unsigned int port = 3306; local 575 { "port", "3306", 0 }, 755 port = atoi(vars[3].optval); 772 port, unix_socket, connect_opts TSRMLS_CC) == NULL) { 774 if (mysql_real_connect(H->server, host, dbh->username, dbh->password, dbname, port, unix_socket, connect_opts) == NULL) {
|
| /PHP_5_3/ext/pgsql/ |
| H A D | pgsql.c | 97 ZEND_ARG_INFO(0, port) 106 ZEND_ARG_INFO(0, port) 1077 char *host=NULL,*port=NULL,*options=NULL,*tty=NULL,*dbname=NULL,*connstring=NULL; local 1117 port = Z_STRVAL_PP(args[1]); 1152 pgsql=PQsetdb(host,port,options,tty,dbname); 1187 le->ptr=PQsetdb(host,port,options,tty,dbname); 1246 pgsql = PQsetdb(host,port,options,tty,dbname); 1297 /* {{{ proto resource pg_connect(string connection_string[, int connect_type] | [string host, string port [, string options [, string tty,]]] string database) 1305 /* {{{ proto resource pg_pconnect(string connection_string | [string host, string port [, string options [, string tty,]]] string database) 1453 Return the port numbe [all...] |
| /PHP_5_3/ext/soap/ |
| H A D | php_http.c | 166 int port; local 176 port = Z_LVAL_PP(proxy_port); 180 port = phpurl->port; 192 namelen = spprintf(&name, 0, "%s://%s:%d", (use_ssl && !*use_proxy)? "ssl" : "tcp", host, port); 212 smart_str_append_unsigned(&soap_headers, phpurl->port); 216 if (phpurl->port != 80) { 218 smart_str_append_unsigned(&soap_headers, phpurl->port); 410 if (phpurl->port == 0) { 411 phpurl->port [all...] |
| H A D | php_sdl.c | 756 xmlNodePtr trav, port; local 775 if (!node_is_equal(trav,"port")) { 779 port = trav; 784 bindingAttr = get_attribute(port->properties, "binding"); 786 soap_error0(E_ERROR, "Parsing WSDL: No binding associated with <port>"); 791 trav2 = port->children; 825 soap_error0(E_ERROR, "Parsing WSDL: No address associated with <port>"); 832 soap_error0(E_ERROR, "Parsing WSDL: No location associated with <port>");
|
| /PHP_5_3/ext/sockets/ |
| H A D | sockets.c | 125 ZEND_ARG_INFO(0, port) 165 ZEND_ARG_INFO(1, port) 171 ZEND_ARG_INFO(1, port) 183 ZEND_ARG_INFO(0, port) 193 ZEND_ARG_INFO(0, port) 216 ZEND_ARG_INFO(1, port) 225 ZEND_ARG_INFO(0, port) 347 static int php_open_listen_sock(php_socket **php_sock, int port, int backlog TSRMLS_DC) /* {{{ */ argument 366 la.sin_port = htons((unsigned short) port); 858 /* {{{ proto resource socket_create_listen(int port[, in 863 long port, backlog = 128; local 1083 zval *arg1, *addr, *port = NULL; local 1291 long port = 0; local 1389 long port = 0; local 1663 long len, flags, port = 0; local [all...] |
| /PHP_5_3/ext/standard/ |
| H A D | basic_functions.c | 806 ZEND_ARG_INFO(0, port) 1424 ZEND_ARG_INFO(0, port) 1432 ZEND_ARG_INFO(0, port) 4672 2 = send via tcp/ip to 3rd parameter (name or ip:port) 5624 Returns port associated with service. Protocol must be "tcp" or "udp" */ 5656 /* {{{ proto string getservbyport(int port, string protocol) 5657 Returns service name associated with port. Protocol must be "tcp" or "udp" */ 5662 long port; local 5665 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &port, &proto, &proto_len) == FAILURE) { 5669 serv = getservbyport(htons((unsigned short) port), prot [all...] |
| H A D | fsock.c | 36 long port = -1; 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); 58 if (port > 0) { 59 hostname_len = spprintf(&hostname, 0, "%s:%ld", host, port); 82 if (port > 0) { 86 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s:%ld (%s)", host, port, errstr == NULL ? "Unknown error" : errstr); 119 /* {{{ proto resource fsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]]) 126 /* {{{ proto resource pfsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])
|
| H A D | url.c | 133 /* check if the data we get is a port this allows us to 179 } else if (e) { /* no scheme; starts with colon: look for port */ 189 long port; local 192 port = strtol(port_buf, NULL, 10); 193 if (port > 0 && port <= 65535) { 194 ret->port = (unsigned short) port; 257 /* check for port */ 270 if (!ret->port) { 279 long port; local [all...] |
| H A D | url.h | 28 unsigned short port; member in struct:php_url
|
| /PHP_5_3/main/ |
| H A D | network.c | 415 php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port, argument 445 ((struct sockaddr_in6 *)sa)->sin6_port = htons(port); 451 ((struct sockaddr_in *)sa)->sin_port = htons(port); 504 short port; local 518 port = atoi(colon + 2); 525 port = atoi(colon + 1); 534 in6->sin6_port = htons(port); 542 in4->sin_port = htons(port); 565 in6->sin6_port = htons(port); 572 in4->sin_port = htons(port); 760 php_network_connect_socket_to_host(const char *host, unsigned short port, int socktype, int asynchronous, struct timeval *timeout, char **error_string, int *error_code, char *bindto, unsigned short bindport TSRMLS_DC) argument 930 php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port) argument 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...] |
| /PHP_5_3/sapi/cgi/ |
| H A D | fastcgi.c | 349 short port = 0; local 362 port = atoi(s+1); 363 if (port != 0 && (s-path) < MAXPATHLEN) { 369 port = atoi(path); 370 if (port != 0) { 380 sa.sa_inet.sin_port = htons(port);
|
| /PHP_5_3/sapi/litespeed/ |
| H A D | lsapilib.c | 1450 int port; local 1511 port = atoi( pEnd ); 1512 if (( port <= 0 )||( port > 65535 )) { 1532 ((struct sockaddr_in *)pAddr)->sin_port = htons( port ); 1534 ((struct sockaddr_in6 *)pAddr)->sin6_port = htons( port );
|
| /PHP_5_3/ext/mysqlnd/ |
| H A D | mysqlnd_structs.h | 340 typedef enum_func_status (*func_mysqlnd_conn__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 TSRMLS_DC); 756 unsigned int port; member in struct:st_mysqlnd_connection
|
| H A D | mysqlnd.c | 552 unsigned int port, 567 DBG_INF_FMT("host=%s user=%s db=%s port=%u flags=%u persistent=%u state=%u", 568 host?host:"", user?user:"", db?db:"", port, mysql_flags, 630 if (!port) { 631 port = 3306; 633 transport_len = spprintf(&transport, 0, "tcp://%s:%u", host, port); 746 conn->port = port; 862 unsigned int port, 871 DBG_INF_FMT("host=%s user=%s db=%s port 858 mysqlnd_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 TSRMLS_DC) argument [all...] |
| /PHP_5_3/sapi/fpm/fpm/ |
| H A D | fpm_sockets.c | 261 int port = 0; local 263 if (port_str) { /* this is host:port pair */ 265 port = atoi(port_str); 267 } else if (strlen(dup_address) == strspn(dup_address, "0123456789")) { /* this is port */ 268 port = atoi(dup_address); 272 if (port == 0) { 273 zlog(ZLOG_ERROR, "invalid port value '%s'", port_str); 291 sa_in.sin_port = htons(port);
|
| /PHP_5_3/ext/mysql/ |
| H A D | php_mysql.c | 484 if (new_value != NULL) { /* default port */ 695 int hashed_details_length, port = MYSQL_PORT; local 787 * mysql_real_connect() to set the port. 794 port = atoi(tmp); 804 port = MySG(default_port); 808 mysql_port = port; 853 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL) 855 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socket, client_flags TSRMLS_CC) == NULL) 901 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL) 903 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socke [all...] |