Searched refs:port (Results 1 - 25 of 50) 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/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/main/
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)
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...]
/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/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/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);
/PHP_TRUNK/ext/standard/
H A Dfsock.c36 zend_long port = -1; local
54 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lz/z/d", &host, &host_len, &port, &zerrno, &zerrstr, &timeout) == FAILURE) {
59 spprintf(&hashkey, 0, "pfsockopen__%s:" ZEND_LONG_FMT, host, port);
62 if (port > 0) {
63 hostname_len = spprintf(&hostname, 0, "%s:" ZEND_LONG_FMT, host, port);
91 if (port > 0) {
95 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);
127 /* {{{ proto resource fsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])
135 /* {{{ 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 = (int)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 Dhttp_fopen_wrapper.c187 if (use_ssl && resource->port == 0)
188 resource->port = 443;
189 else if (resource->port == 0)
190 resource->port = 80;
200 transport_len = spprintf(&transport_string, 0, "%s://%s:%d", use_ssl ? "ssl" : "tcp", resource->host, resource->port);
250 smart_str_append_unsigned(&header, resource->port);
562 if ((use_ssl && resource->port != 443 && resource->port != 0) ||
563 (!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 zend_long port; local
192 port = ZEND_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 zend_long port; local
[all...]
H A Durl.h28 unsigned short port; member in struct:php_url
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_io.c149 PHPDBG_API int phpdbg_open_socket(const char *interface, unsigned short port TSRMLS_DC) {
151 int fd = phpdbg_create_listenable_socket(interface, port, &res TSRMLS_CC);
168 PHPDBG_API int phpdbg_create_listenable_socket(const char *addr, unsigned short port, struct addrinfo *addr_res TSRMLS_DC) { argument
204 snprintf(port_buf, 7, "%u", port);
H A Dphpdbg_io.h29 PHPDBG_API int phpdbg_create_listenable_socket(const char *addr, unsigned short port, struct addrinfo *res TSRMLS_DC);
30 PHPDBG_API int phpdbg_open_socket(const char *interface, unsigned short port TSRMLS_DC);

Completed in 16 milliseconds

12