Searched refs:port (Results 1 - 25 of 43) 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 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);
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);
/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/oci8/tests/
H A Ddetails.inc11 * string like hostname:port/service_name:POOLED
/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/tests/
H A Dinclude.inc89 function run_request($host, $port, $uri='/ping', $query='') {
91 $client = new Adoy\FastCGI\Client($host, $port);
/PHP_TRUNK/ext/standard/
H A Dfsock.c36 zend_long port = -1; local
54 if (zend_parse_parameters(ZEND_NUM_ARGS(), "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, 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 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 = (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.
731 * 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);
570 if ((use_ssl && resource->port != 443 && resource->port != 0) ||
571 (!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;
260 /* check for port */
273 if (!ret->port) {
282 zend_long port; local
[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/main/
H A Dnetwork.c423 php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port, argument
454 ((struct sockaddr_in6 *)sa)->sin6_port = htons(port);
460 ((struct sockaddr_in *)sa)->sin_port = htons(port);
520 short port; local
534 port = atoi(colon + 2);
541 port = atoi(colon + 1);
550 in6->sin6_port = htons(port);
558 in4->sin_port = htons(port);
581 in6->sin6_port = htons(port);
588 in4->sin_port = htons(port);
773 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 ) argument
952 php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port) argument
1114 _php_stream_sock_open_host(const char *host, unsigned short port, int socktype, struct timeval *timeout, const char *persistent_id STREAMS_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)
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)
/PHP_TRUNK/ext/soap/
H A Dphp_http.c169 int port; local
179 port = Z_LVAL_P(proxy_port);
183 port = phpurl->port;
229 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);
470 if (phpurl->port == 0) {
471 phpurl->port
[all...]
/PHP_TRUNK/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, zend_long timeout_sec);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_io.c198 PHPDBG_API int phpdbg_open_socket(const char *interface, unsigned short port) { argument
200 int fd = phpdbg_create_listenable_socket(interface, port, &res);
217 PHPDBG_API int phpdbg_create_listenable_socket(const char *addr, unsigned short port, struct addrinfo *addr_res) { argument
253 snprintf(port_buf, 7, "%u", port);
H A Dphpdbg_io.h31 PHPDBG_API int phpdbg_create_listenable_socket(const char *addr, unsigned short port, struct addrinfo *res);
32 PHPDBG_API int phpdbg_open_socket(const char *interface, unsigned short port);
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_sockets.c257 int port = 0; local
261 if (port_str) { /* this is host:port pair */
263 port = atoi(port_str);
265 } else if (strlen(dup_address) == strspn(dup_address, "0123456789")) { /* this is port */
266 port = atoi(dup_address);
272 if (port == 0) {
273 zlog(ZLOG_ERROR, "invalid port value '%s'", port_str);
/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)
419 static int php_open_listen_sock(php_socket **php_sock, int port, int backlog) /* {{{ */ argument
438 la.sin_port = htons((unsigned short) port);
912 /* {{{ proto resource socket_create_listen(int port[, in
917 zend_long port, backlog = 128; local
1192 zval *arg1, *addr, *port = NULL; local
1404 zend_long port = 0; local
1510 zend_long port = 0; local
1801 zend_long len, flags, port = 0; local
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c190 int port; member in struct:php_cli_server
627 char addr[64], port[8]; local
628 strncpy(port, tmp + 1, 8);
629 port[7] = '\0';
633 sapi_cli_server_register_variable(track_vars_array, "REMOTE_PORT", port);
653 spprintf(&tmp, 0, "%i", client->server->port);
1179 static php_socket_t php_network_listen_socket(const char *host, int *port, int socktype, int *af, socklen_t *socklen, zend_string **errstr) /* {{{ */ argument
1211 ((struct sockaddr_in6 *)sa)->sin6_port = htons(*port);
1224 ((struct sockaddr_in *)sa)->sin_port = htons(*port);
1253 if (*port
2173 int port = 3000; local
[all...]

Completed in 98 milliseconds

12