Searched refs:port (Results 1 - 25 of 47) sorted by relevance

12

/PHP_5_4/ext/soap/tests/schema/
H A Dtest_schema.inc46 <port name="testPort" binding="tns:testBinding">
48 </port>
/PHP_5_4/ext/ldap/tests/
H A Dconnect.inc9 $port = getenv("LDAP_TEST_PORT") ? getenv("LDAP_TEST_PORT") : 389;
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_4/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) {
31 else if ($port)
32 $host = sprintf("%s:%s", $host, $port);
64 $port = getenv("MYSQL_TEST_PORT") ? getenv("MYSQL_TEST_PORT") : 3306;
H A Dskipifconnectfailure.inc6 else if ($port)
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_4/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 Dskipifconnectfailure.inc5 $link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
H A Dconnect.inc12 $port = getenv("MYSQL_TEST_PORT") ? getenv("MYSQL_TEST_PORT") : 3306;
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 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_4/ext/ftp/tests/
H A Dserver.inc8 $port = rand(50000, 65535);
10 $socket = stream_socket_server("tcp://127.0.0.1:$port", $errno, $errstr, STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
12 //set anther random port that is not the same as $port
15 }while($pasv_port == $port);
220 $port = ((int)$m[5] << 8) + (int)$m[6];
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")) {
387 $port
[all...]
/PHP_5_4/sapi/fpm/fpm/
H A Dfpm_sockets.c261 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_4/ext/soap/
H A Dphp_http.c166 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...]
/PHP_5_4/ext/sockets/
H A Dsockets.c141 ZEND_ARG_INFO(0, port)
181 ZEND_ARG_INFO(1, port)
187 ZEND_ARG_INFO(1, port)
199 ZEND_ARG_INFO(0, port)
209 ZEND_ARG_INFO(0, port)
232 ZEND_ARG_INFO(1, port)
241 ZEND_ARG_INFO(0, port)
425 static int php_open_listen_sock(php_socket **php_sock, int port, int backlog TSRMLS_DC) /* {{{ */ argument
444 la.sin_port = htons((unsigned short) port);
1099 /* {{{ proto resource socket_create_listen(int port[, in
1104 long port, backlog = 128; local
1364 zval *arg1, *addr, *port = NULL; local
1567 long port = 0; local
1671 long port = 0; local
1945 long len, flags, port = 0; local
[all...]
/PHP_5_4/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 Dftp_fopen_wrapper.c153 /* use port 21 if one wasn't specified */
154 if (resource->port == 0)
155 resource->port = 21;
157 transport_len = spprintf(&transport, 0, "tcp://%s:%d", resource->host, resource->port);
353 /* skip over the host ip, to get the port */
368 /* pull out the MSB of the port */
379 /* pull out the LSB of the port */
394 /* pull out the port */
565 * this data will only be sent to us after connection on the data port was initiated.
738 * this data will only be sent to us after connection on the data port wa
[all...]
H A Durl.h28 unsigned short port; member in struct:php_url
H A Dhttp_fopen_wrapper.c180 if (use_ssl && resource->port == 0)
181 resource->port = 443;
182 else if (resource->port == 0)
183 resource->port = 80;
193 transport_len = spprintf(&transport_string, 0, "%s://%s:%d", use_ssl ? "ssl" : "tcp", resource->host, resource->port);
229 smart_str_append_unsigned(&header, resource->port);
555 if ((use_ssl && resource->port != 443 && resource->port != 0) ||
556 (!use_ssl && resource->port != 80 && resource->port !
[all...]
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;
261 /* check for port */
274 if (!ret->port) {
283 long port; local
[all...]
/PHP_5_4/main/
H A Dphp_network.h228 PHPAPI php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port,
244 PHPAPI php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port,
269 PHPAPI void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port);
288 PHPAPI php_stream *_php_stream_sock_open_host(const char *host, unsigned short port,
305 #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)
309 #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.c415 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
1054 _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_4/sapi/fpm/fpm/events/
H A Dport.c28 #include <port.h>
39 .name = "port",
71 /* open port */
74 zlog(ZLOG_ERROR, "port: unable to initialize port_create()");
85 zlog(ZLOG_ERROR, "port: Unable to allocate %d events", max);
162 /* add the event to port */
164 zlog(ZLOG_ERROR, "port: unable to add the event");
176 /* remove the event from port */
178 zlog(ZLOG_ERROR, "port: unable to add the event");
/PHP_5_4/ext/ftp/
H A Dftp.h94 * port is the ftp port in network byte order, or 0 for the default
96 ftpbuf_t* ftp_open(const char *host, short port, long timeout_sec TSRMLS_DC);
/PHP_5_4/sapi/cli/
H A Dphp_cli_server.c186 int port; member in struct:php_cli_server
620 char addr[64], port[8]; local
621 strncpy(port, tmp + 1, 8);
622 port[7] = '\0';
626 sapi_cli_server_register_variable(track_vars_array, "REMOTE_PORT", port TSRMLS_CC);
646 spprintf(&tmp, 0, "%i", client->server->port);
1157 static int php_network_listen_socket(const char *host, int *port, int socktype, int *af, socklen_t *socklen, char **errstr TSRMLS_DC) /* {{{ */ argument
1189 ((struct sockaddr_in6 *)sa)->sin6_port = htons(*port);
1202 ((struct sockaddr_in *)sa)->sin_port = htons(*port);
1231 if (*port
2115 int port = 3000; local
[all...]

Completed in 24 milliseconds

12