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

12

/PHP_5_6/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_6/ext/soap/tests/schema/
H A Dtest_schema.inc46 <port name="testPort" binding="tns:testBinding">
48 </port>
/PHP_5_6/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_6/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.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 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_6/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_6/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_6/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_6/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 Dftp_fopen_wrapper.c154 /* use port 21 if one wasn't specified */
155 if (resource->port == 0)
156 resource->port = 21;
158 transport_len = spprintf(&transport, 0, "tcp://%s:%d", resource->host, resource->port);
354 /* skip over the host ip, to get the port */
369 /* pull out the MSB of the port */
380 /* pull out the LSB of the port */
395 /* pull out the port */
567 * this data will only be sent to us after connection on the data port was initiated.
741 * this data will only be sent to us after connection on the data port wa
[all...]
H A Dhttp_fopen_wrapper.c183 if (use_ssl && resource->port == 0)
184 resource->port = 443;
185 else if (resource->port == 0)
186 resource->port = 80;
196 transport_len = spprintf(&transport_string, 0, "%s://%s:%d", use_ssl ? "ssl" : "tcp", resource->host, resource->port);
239 smart_str_append_unsigned(&header, resource->port);
568 if ((use_ssl && resource->port != 443 && resource->port != 0) ||
569 (!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;
257 /* check for port */
270 if (!ret->port) {
279 long port; local
[all...]
/PHP_5_6/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_6/main/
H A Dphp_network.h230 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,
271 PHPAPI void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port);
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 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_6/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...]
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg.c715 int phpdbg_open_socket(const char *interface, short port) /* {{{ */ argument
736 address.sin_port = htons(port);
788 int phpdbg_open_sockets(char *address, int port[2], int (*listen)[2], int (*socket)[2], FILE* streams[2]) /* {{{ */ argument
791 ((*listen)[0]) = phpdbg_open_socket(address, (short)port[0]);
792 ((*listen)[1]) = phpdbg_open_socket(address, (short)port[1]);
801 "console failed to initialize (stdin) on %s:%d", address, port[0]);
806 "console failed to initialize (stdout) on %s:%d", address, port[1]);
823 "accepting connections on %s:%d/%d", address, port[0], port[1]);
1129 /* if you pass a listen port, w
[all...]
/PHP_5_6/sapi/fpm/fpm/
H A Dfpm_sockets.c248 int port = 0; local
252 if (port_str) { /* this is host:port pair */
254 port = atoi(port_str);
256 } else if (strlen(dup_address) == strspn(dup_address, "0123456789")) { /* this is port */
257 port = atoi(dup_address);
261 if (port == 0) {
262 zlog(ZLOG_ERROR, "invalid port value '%s'", port_str);

Completed in 48 milliseconds

12