Searched defs:port (Results 1 - 23 of 23) sorted by relevance

/PHP_5_5/
H A Dserver-tests.php299 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";
H A Drun-tests.php988 if (empty($proxy['port'])) {
989 $proxy['port'] = 80;
991 $port = $proxy['port']; variable
995 $port = empty($url_bits['port']) ? 80 : $port = $url_bits['port']; variable
1001 $fs = fsockopen($host, $port, $errno, $errstr, 10);
/PHP_5_5/ext/pdo_mysql/
H A Dmysql_driver.c541 unsigned int port = 3306; local
547 { "port", "3306", 0 },
738 port = atoi(vars[3].optval);
755 port, unix_socket, connect_opts TSRMLS_CC) == NULL) {
757 if (mysql_real_connect(H->server, host, dbh->username, dbh->password, dbname, port, unix_socket, connect_opts) == NULL) {
/PHP_5_5/ext/soap/
H A Dphp_http.c167 int port; local
177 port = Z_LVAL_PP(proxy_port);
181 port = phpurl->port;
227 namelen = spprintf(&name, 0, "%s://%s:%d", protocol, host, port);
247 smart_str_append_unsigned(&soap_headers, phpurl->port);
251 if (phpurl->port != 80) {
253 smart_str_append_unsigned(&soap_headers, phpurl->port);
472 if (phpurl->port == 0) {
473 phpurl->port
[all...]
H A Dphp_sdl.c756 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_5/ext/sockets/
H A Dsockets.c110 ZEND_ARG_INFO(0, port)
150 ZEND_ARG_INFO(1, port)
156 ZEND_ARG_INFO(1, port)
168 ZEND_ARG_INFO(0, port)
178 ZEND_ARG_INFO(0, port)
201 ZEND_ARG_INFO(1, port)
210 ZEND_ARG_INFO(0, port)
416 static int php_open_listen_sock(php_socket **php_sock, int port, int backlog TSRMLS_DC) /* {{{ */ argument
435 la.sin_port = htons((unsigned short) port);
914 /* {{{ proto resource socket_create_listen(int port[, in
919 long port, backlog = 128; local
1179 zval *arg1, *addr, *port = NULL; local
1382 long port = 0; local
1486 long port = 0; local
1765 long len, flags, port = 0; local
[all...]
/PHP_5_5/ext/standard/
H A Dfsock.c36 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 Durl.h28 unsigned short port; member in struct:php_url
H A Durl.c133 /* 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 Dbasic_functions.c815 ZEND_ARG_INFO(0, port)
1428 ZEND_ARG_INFO(0, port)
1436 ZEND_ARG_INFO(0, port)
4674 2 = send via tcp/ip to 3rd parameter (name or ip:port)
5612 Returns port associated with service. Protocol must be "tcp" or "udp" */
5644 /* {{{ proto string getservbyport(int port, string protocol)
5645 Returns service name associated with port. Protocol must be "tcp" or "udp" */
5650 long port; local
5653 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &port, &proto, &proto_len) == FAILURE) {
5657 serv = getservbyport(htons((unsigned short) port), prot
[all...]
/PHP_5_5/ext/ftp/
H A Dftp.c114 /* 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,
741 /* parse out the port */
771 /* parse out the IP and port */
H A Dphp_ftp.c50 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_5/ext/mysql/
H A Dphp_mysql.c484 if (new_value != NULL) { /* default port */
725 int hashed_details_length, port = MYSQL_PORT; local
821 * mysql_real_connect() to set the port.
828 port = atoi(tmp);
838 port = MySG(default_port);
842 mysql_port = port;
887 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL)
889 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socket, client_flags TSRMLS_CC) == NULL)
935 if (mysql_real_connect(mysql->conn, host, user, passwd, NULL, port, socket, client_flags)==NULL)
937 if (mysqlnd_connect(mysql->conn, host, user, passwd, passwd_len, NULL, 0, port, socke
[all...]
/PHP_5_5/ext/mysqlnd/
H A Dmysqlnd_structs.h414 typedef enum_func_status (*func_mysqlnd_conn_data__connect)(MYSQLND_CONN_DATA * 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);
596 typedef enum_func_status (*func_mysqlnd_data__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);
890 unsigned int port; member in struct:st_mysqlnd_connection_data
H A Dmysqlnd.c834 unsigned int port,
859 DBG_INF_FMT("host=%s user=%s db=%s port=%u flags=%u persistent=%u state=%u",
860 host?host:"", user?user:"", db?db:"", port, mysql_flags,
937 if (!port) {
938 port = 3306;
940 transport_len = mnd_sprintf(&transport, 0, "tcp://%s:%u", host, port);
979 conn->port = port;
1085 unsigned int port,
1098 ret = conn->m->connect(conn, host, user, passwd, passwd_len, db, db_len, port, socket_or_pip
1108 mysqlnd_connect(MYSQLND * conn_handle, 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_5/ext/mysqli/
H A Dmysqli_nonapi.c68 long port = 0, flags = 0; local
93 &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len) == FAILURE) {
111 &hostname, &hostname_len, &username, &username_len, &passwd, &passwd_len, &dbname, &dbname_len, &port, &socket, &socket_len,
131 if (!port){
132 port = MyG(default_port);
160 port, SAFE_STR(username), SAFE_STR(dbname),
240 if (mysql_real_connect(mysql->mysql, hostname, username, passwd, dbname, port, socket, flags) == NULL)
243 port, socket, flags TSRMLS_CC) == NULL)
307 /* {{{ proto object mysqli_connect([string hostname [,string username [,string passwd [,string dbname [,int port [,string socket]]]]]])
/PHP_5_5/ext/pgsql/
H A Dpgsql.c103 ZEND_ARG_INFO(0, port)
112 ZEND_ARG_INFO(0, port)
1227 char *host=NULL,*port=NULL,*options=NULL,*tty=NULL,*dbname=NULL,*connstring=NULL; local
1267 port = Z_STRVAL_PP(args[1]);
1302 pgsql=PQsetdb(host,port,options,tty,dbname);
1337 le->ptr=PQsetdb(host,port,options,tty,dbname);
1396 pgsql = PQsetdb(host,port,options,tty,dbname);
1447 /* {{{ proto resource pg_connect(string connection_string[, int connect_type] | [string host, string port [, string options [, string tty,]]] string database)
1455 /* {{{ proto resource pg_pconnect(string connection_string | [string host, string port [, string options [, string tty,]]] string database)
1604 Return the port numbe
[all...]
/PHP_5_5/sapi/cli/
H A Dphp_cli_server.c189 int port; member in struct:php_cli_server
746 char addr[64], port[8]; local
747 strncpy(port, tmp + 1, 8);
748 port[7] = '\0';
752 sapi_cli_server_register_variable(track_vars_array, "REMOTE_PORT", port TSRMLS_CC);
772 spprintf(&tmp, 0, "%i", client->server->port);
1283 static int php_network_listen_socket(const char *host, int *port, int socktype, int *af, socklen_t *socklen, char **errstr TSRMLS_DC) /* {{{ */ argument
1315 ((struct sockaddr_in6 *)sa)->sin6_port = htons(*port);
1328 ((struct sockaddr_in *)sa)->sin_port = htons(*port);
1357 if (*port
2246 int port = 3000; local
[all...]
/PHP_5_5/main/
H A Dnetwork.c418 php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port, argument
448 ((struct sockaddr_in6 *)sa)->sin6_port = htons(port);
454 ((struct sockaddr_in *)sa)->sin_port = htons(port);
507 short port; local
521 port = atoi(colon + 2);
528 port = atoi(colon + 1);
537 in6->sin6_port = htons(port);
545 in4->sin_port = htons(port);
568 in6->sin6_port = htons(port);
575 in4->sin_port = htons(port);
763 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
933 php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port) argument
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_5/sapi/litespeed/
H A Dlsapilib.c2277 int port; local
2338 port = atoi( pEnd );
2339 if (( port <= 0 )||( port > 65535 ))
2360 ((struct sockaddr_in *)pAddr)->sin_port = htons( port );
2362 ((struct sockaddr_in6 *)pAddr)->sin6_port = htons( port );
/PHP_5_5/sapi/cgi/
H A Dfastcgi.c573 short port = 0; local
586 port = atoi(s+1);
587 if (port != 0 && (s-path) < MAXPATHLEN) {
593 port = atoi(path);
594 if (port != 0) {
604 sa.sa_inet.sin_port = htons(port);
/PHP_5_5/ext/ldap/
H A Dldap.c289 /* {{{ proto resource ldap_connect([string host [, int port [, string wallet [, string wallet_passwd [, int authmode]]]]])
295 long port = 389; /* Default port */ local
310 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|slssl", &host, &hostlen, &port, &wallet, &walletlen, &walletpasswd, &walletpasswdlen, &authmode) != SUCCESS) {
318 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sl", &host, &hostlen, &port) != SUCCESS) {
341 ldap = ldap_init(host, port);
344 ldap = ldap_open(host, port);
2765 ZEND_ARG_INFO(0, port)
/PHP_5_5/sapi/fpm/fpm/
H A Dfpm_sockets.c260 int port = 0; local
264 if (port_str) { /* this is host:port pair */
266 port = atoi(port_str);
268 } else if (strlen(dup_address) == strspn(dup_address, "0123456789")) { /* this is port */
269 port = atoi(dup_address);
273 if (port == 0) {
274 zlog(ZLOG_ERROR, "invalid port value '%s'", port_str);
284 sa_in.sin_port = htons(port);

Completed in 122 milliseconds