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

12

/PHP_TRUNK/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_TRUNK/ext/soap/tests/schema/
H A Dtest_schema.inc46 <port name="testPort" binding="tns:testBinding">
48 </port>
/PHP_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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);
903 /* {{{ proto resource socket_create_listen(int port[, in
908 zend_long port, backlog = 128; local
1170 zval *arg1, *addr, *port = NULL; local
1378 zend_long port = 0; local
1482 zend_long port = 0; local
1765 zend_long len, flags, port = 0; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dfsock.c36 zend_long port = -1; local
50 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lz/z/d", &host, &host_len, &port, &zerrno, &zerrstr, &timeout) == FAILURE) {
55 spprintf(&hashkey, 0, "pfsockopen__%s:" ZEND_LONG_FMT, host, port);
58 if (port > 0) {
59 hostname_len = spprintf(&hostname, 0, "%s:" ZEND_LONG_FMT, host, port);
82 if (port > 0) {
86 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to connect to %s:" ZEND_LONG_FMT " (%s)", host, port, errstr == NULL ? "Unknown error" : errstr->val);
118 /* {{{ 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.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.
732 * this data will only be sent to us after connection on the data port wa
[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 zend_long port; local
192 port = ZEND_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 zend_long port; local
[all...]
H A Durl.h28 unsigned short port; member in struct:php_url
H A Dhttp_fopen_wrapper.c185 if (use_ssl && resource->port == 0)
186 resource->port = 443;
187 else if (resource->port == 0)
188 resource->port = 80;
198 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);
551 if ((use_ssl && resource->port != 443 && resource->port != 0) ||
552 (!use_ssl && resource->port != 80 && resource->port !
[all...]
/PHP_TRUNK/main/
H A Dnetwork.c418 php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port, argument
449 ((struct sockaddr_in6 *)sa)->sin6_port = htons(port);
455 ((struct sockaddr_in *)sa)->sin_port = htons(port);
515 short port; local
529 port = atoi(colon + 2);
536 port = atoi(colon + 1);
545 in6->sin6_port = htons(port);
553 in4->sin_port = htons(port);
576 in6->sin6_port = htons(port);
583 in4->sin_port = htons(port);
768 php_network_connect_socket_to_host(const char *host, unsigned short port, int socktype, int asynchronous, struct timeval *timeout, zend_string **error_string, int *error_code, char *bindto, unsigned short bindport, long sockopts TSRMLS_DC) argument
947 php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port) argument
1109 _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...]
H A Dphp_network.h236 PHPAPI php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port,
252 PHPAPI php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port,
277 PHPAPI void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port);
296 PHPAPI php_stream *_php_stream_sock_open_host(const char *host, unsigned short port,
313 #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)
317 #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)
/PHP_TRUNK/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_TRUNK/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_TRUNK/ext/soap/
H A Dphp_http.c165 int port; local
175 port = Z_LVAL_P(proxy_port);
179 port = phpurl->port;
225 namelen = spprintf(&name, 0, "%s://%s:%d", protocol, host, port);
243 smart_str_append_unsigned(&soap_headers, phpurl->port);
247 if (phpurl->port != 80) {
249 smart_str_append_unsigned(&soap_headers, phpurl->port);
466 if (phpurl->port == 0) {
467 phpurl->port
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c190 int port; member in struct:php_cli_server
674 char addr[64], port[8]; local
675 strncpy(port, tmp + 1, 8);
676 port[7] = '\0';
680 sapi_cli_server_register_variable(track_vars_array, "REMOTE_PORT", port TSRMLS_CC);
700 spprintf(&tmp, 0, "%i", client->server->port);
1210 static int php_network_listen_socket(const char *host, int *port, int socktype, int *af, socklen_t *socklen, zend_string **errstr TSRMLS_DC) /* {{{ */ argument
1242 ((struct sockaddr_in6 *)sa)->sin6_port = htons(*port);
1255 ((struct sockaddr_in *)sa)->sin_port = htons(*port);
1284 if (*port
2191 int port = 3000; local
[all...]

Completed in 43 milliseconds

12