Searched refs:protocol (Results 1 - 25 of 27) sorted by relevance

12

/PHP_TRUNK/sapi/thttpd/
H A Dthttpd.c322 CONDADD(SERVER_PROTOCOL, protocol);
/PHP_TRUNK/sapi/webjames/
H A Dwebjames.c125 ADD_FIELD("SERVER_PROTOCOL", protocol);
/PHP_TRUNK/win32/
H A Dsockets.c31 PHPAPI int socketpair(int domain, int type, int protocol, SOCKET sock[2]) argument
45 sock[0] = socket(domain, type, protocol);
66 sock[1] = socket(domain, type, protocol);
H A Dsockets.h26 PHPAPI int socketpair(int domain, int type, int protocol, SOCKET sock[2])
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_ext_plugin.c113 _mysqlnd_plugin_get_plugin_protocol_data(const MYSQLND_PROTOCOL * protocol, unsigned int plugin_id TSRMLS_DC) argument
117 if (!protocol || plugin_id >= mysqlnd_plugin_count()) {
120 DBG_RETURN((void *)((char *)protocol + sizeof(MYSQLND_PROTOCOL) + plugin_id * sizeof(void *)));
H A Dmysqlnd_ext_plugin.h46 PHPAPI void ** _mysqlnd_plugin_get_plugin_protocol_data(const MYSQLND_PROTOCOL * protocol, unsigned int plugin_id TSRMLS_DC);
H A Dmysqlnd.c196 if (conn->protocol) {
197 mysqlnd_protocol_free(conn->protocol TSRMLS_CC);
198 conn->protocol = NULL;
225 MYSQLND_PACKET_OK * ok_response = conn->protocol->m.get_ok_packet(conn->protocol, FALSE TSRMLS_CC);
243 Cover a protocol design error: error packet does not
271 MYSQLND_PACKET_EOF * ok_response = conn->protocol->m.get_eof_packet(conn->protocol, FALSE TSRMLS_CC);
341 cmd_packet = conn->protocol->m.get_command_packet(conn->protocol, FALS
[all...]
H A Dmysqlnd_auth.c60 auth_resp_packet = conn->protocol->m.get_auth_response_packet(conn->protocol, FALSE TSRMLS_CC);
68 change_auth_resp_packet = conn->protocol->m.get_change_auth_response_packet(conn->protocol, FALSE TSRMLS_CC);
83 auth_packet = conn->protocol->m.get_auth_packet(conn->protocol, FALSE TSRMLS_CC);
181 chg_user_resp = conn->protocol->m.get_change_user_response_packet(conn->protocol, FALSE TSRMLS_CC);
189 change_auth_resp_packet = conn->protocol->m.get_change_auth_response_packet(conn->protocol, FALS
[all...]
H A Dmysqlnd_ps.c268 if (!stmt || !stmt->conn || !stmt->conn->protocol) {
273 field_packet = stmt->conn->protocol->m.get_result_field_packet(stmt->conn->protocol, FALSE TSRMLS_CC);
303 if (!stmt || !stmt->conn || !stmt->conn->protocol) {
308 prepare_resp = stmt->conn->protocol->m.get_prepare_response_packet(stmt->conn->protocol, FALSE TSRMLS_CC);
347 if (!stmt || !stmt->conn || !stmt->conn->protocol) {
352 fields_eof = stmt->conn->protocol->m.get_eof_packet(stmt->conn->protocol, FALSE TSRMLS_CC);
1377 Cover protocol erro
[all...]
H A Dmysqlnd_result.c414 rset_header = conn->protocol->m.get_rset_header_packet(conn->protocol, FALSE TSRMLS_CC);
430 Cover a protocol design error: error packet does not
545 fields_eof = conn->protocol->m.get_eof_packet(conn->protocol, FALSE TSRMLS_CC);
947 result->unbuf->row_packet = result->conn->protocol->m.get_row_packet(result->conn->protocol, FALSE TSRMLS_CC);
1298 row_packet = conn->protocol->m.get_row_packet(conn->protocol, FALSE TSRMLS_CC);
H A Dmysqlnd_result_meta.c60 field_packet = conn->protocol->m.get_result_field_packet(conn->protocol, FALSE TSRMLS_CC);
H A Dmysqlnd_structs.h182 enum_mysqlnd_protocol_type protocol; member in struct:st_mysqlnd_options
358 typedef struct st_mysqlnd_packet_greet * (*func_mysqlnd_protocol__get_greet_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
359 typedef struct st_mysqlnd_packet_auth * (*func_mysqlnd_protocol__get_auth_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
360 typedef struct st_mysqlnd_packet_auth_response *(*func_mysqlnd_protocol__get_auth_response_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
361 typedef struct st_mysqlnd_packet_change_auth_response * (*func_mysqlnd_protocol__get_change_auth_response_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
362 typedef struct st_mysqlnd_packet_ok * (*func_mysqlnd_protocol__get_ok_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
363 typedef struct st_mysqlnd_packet_command * (*func_mysqlnd_protocol__get_command_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
364 typedef struct st_mysqlnd_packet_eof * (*func_mysqlnd_protocol__get_eof_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
365 typedef struct st_mysqlnd_packet_rset_header * (*func_mysqlnd_protocol__get_rset_header_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
366 typedef struct st_mysqlnd_packet_res_field * (*func_mysqlnd_protocol__get_result_field_packet)(MYSQLND_PROTOCOL * const protocol, zend_boo
902 MYSQLND_PROTOCOL * protocol; member in struct:st_mysqlnd_connection_data
[all...]
H A Dmysqlnd_wireprotocol.c1720 less space in the protocol than the numbers they represent, we don't
2308 MYSQLND_METHOD(mysqlnd_protocol, get_greet_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC)
2323 MYSQLND_METHOD(mysqlnd_protocol, get_auth_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC)
2338 MYSQLND_METHOD(mysqlnd_protocol, get_auth_response_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC)
2353 MYSQLND_METHOD(mysqlnd_protocol, get_change_auth_response_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC)
2368 MYSQLND_METHOD(mysqlnd_protocol, get_ok_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC)
2383 MYSQLND_METHOD(mysqlnd_protocol, get_eof_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC)
2398 MYSQLND_METHOD(mysqlnd_protocol, get_command_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC)
2413 MYSQLND_METHOD(mysqlnd_protocol, get_rset_header_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC)
2428 MYSQLND_METHOD(mysqlnd_protocol, get_result_field_packet)(MYSQLND_PROTOCOL * const protocol, zend_boo
[all...]
H A Dmysqlnd_wireprotocol.h324 PHPAPI void mysqlnd_protocol_free(MYSQLND_PROTOCOL * const protocol TSRMLS_DC);
/PHP_TRUNK/main/streams/
H A Dphp_stream_transport.h37 PHPAPI int php_stream_xport_register(const char *protocol, php_stream_transport_factory factory TSRMLS_DC);
38 PHPAPI int php_stream_xport_unregister(const char *protocol TSRMLS_DC);
H A Dstreams.c1691 /* Validate protocol scheme names during registration
1694 static inline int php_stream_wrapper_scheme_validate(const char *protocol, unsigned int protocol_len) argument
1699 if (!isalnum((int)protocol[i]) &&
1700 protocol[i] != '+' &&
1701 protocol[i] != '-' &&
1702 protocol[i] != '.') {
1711 PHPAPI int php_register_url_stream_wrapper(const char *protocol, php_stream_wrapper *wrapper TSRMLS_DC) argument
1713 unsigned int protocol_len = strlen(protocol);
1715 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) {
1719 return zend_hash_str_add_ptr(&url_stream_wrappers_hash, protocol, protocol_le
1735 php_register_url_stream_wrapper_volatile(const char *protocol, php_stream_wrapper *wrapper TSRMLS_DC) argument
1765 const char *p, *protocol = NULL; local
[all...]
H A Dtransports.c32 PHPAPI int php_stream_xport_register(const char *protocol, php_stream_transport_factory factory TSRMLS_DC) argument
34 return zend_hash_str_update_ptr(&xport_hash, protocol, strlen(protocol), factory) ? SUCCESS : FAILURE;
37 PHPAPI int php_stream_xport_unregister(const char *protocol TSRMLS_DC)
39 return zend_hash_str_del(&xport_hash, protocol, strlen(protocol));
62 const char *p, *protocol = NULL; local
100 protocol = name;
104 protocol = "tcp";
108 if (protocol) {
[all...]
H A Duserspace.c486 /* {{{ proto bool stream_wrapper_register(string protocol, string classname[, integer flags])
487 Registers a custom URL protocol handler class */
490 zend_string *protocol, *classname; local
495 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "SS|l", &protocol, &classname, &flags) == FAILURE) {
500 uwrap->protoname = estrndup(protocol->val, protocol->len);
509 if (php_register_url_stream_wrapper_volatile(protocol->val, &uwrap->wrapper TSRMLS_CC) == SUCCESS) {
513 if (zend_hash_exists(php_stream_get_url_stream_wrappers_hash(), protocol)) {
514 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Protocol %s:// is already defined.", protocol->val);
516 /* Hash doesn't exist so it must have been an invalid protocol schem
533 char *protocol; local
554 zend_string *protocol; local
[all...]
/PHP_TRUNK/sapi/apache_hooks/
H A Dphp_apache.c372 /* {{{ proto string ApacheRequest::protocol()
376 apache_request_read_string_slot(offsetof(request_rec, protocol), INTERNAL_FUNCTION_PARAM_PASSTHRU);
1302 PHP_FALIAS(protocol, apache_request_protocol, NULL)
/PHP_TRUNK/ext/soap/
H A Dphp_http.c163 char *protocol; local
195 /* uses constants declared in soap.c to determine ssl uri protocol */
198 protocol = "tls";
202 protocol = "sslv2";
206 protocol = "sslv3";
210 protocol = "ssl";
214 protocol = "ssl";
219 protocol = "ssl";
222 protocol = "tcp";
225 namelen = spprintf(&name, 0, "%s://%s:%d", protocol, hos
[all...]
/PHP_TRUNK/ext/sockets/
H A Dsockets.c162 ZEND_ARG_INFO(0, protocol)
230 ZEND_ARG_INFO(0, protocol)
1325 /* {{{ proto resource socket_create(int domain, int type, int protocol)
2079 /* {{{ proto bool socket_create_pair(int domain, int type, int protocol, array &fd)
2086 php_int_t domain, type, protocol; local
2088 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "iiiz/", &domain, &type, &protocol, &fds_array_zval) == FAILURE) {
2109 if (socketpair(domain, type, protocol, fds_array) != 0) {
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c203 ZEND_ARG_INFO(0, protocol)
209 ZEND_ARG_INFO(0, protocol)
213 ZEND_ARG_INFO(0, protocol)
779 ZEND_ARG_INFO(0, protocol)
786 ZEND_ARG_INFO(0, protocol)
1928 ZEND_ARG_INFO(0, protocol)
5490 /* {{{ proto int getservbyname(string service, string protocol)
5523 /* {{{ proto string getservbyport(int port, string protocol)
5549 Returns protocol number associated with name as per /etc/protocols */
5573 Returns protocol nam
[all...]
H A Dstreamsfuncs.c50 /* {{{ proto array stream_socket_pair(int domain, int type, int protocol)
54 php_int_t domain, type, protocol; local
59 &domain, &type, &protocol)) {
63 if (0 != socketpair(domain, type, protocol, pair)) {
/PHP_TRUNK/main/
H A Dphp_streams.h549 PHPAPI int php_register_url_stream_wrapper(const char *protocol, php_stream_wrapper *wrapper TSRMLS_DC);
550 PHPAPI int php_unregister_url_stream_wrapper(const char *protocol TSRMLS_DC);
551 PHPAPI int php_register_url_stream_wrapper_volatile(const char *protocol, php_stream_wrapper *wrapper TSRMLS_DC);
552 PHPAPI int php_unregister_url_stream_wrapper_volatile(const char *protocol TSRMLS_DC);
/PHP_TRUNK/sapi/apache2handler/
H A Dsapi_apache2.c511 if (strcmp(r->protocol, "INCLUDED")) {
547 if (ctx == NULL || (ctx && ctx->request_processed && !strcmp(r->protocol, "INCLUDED"))) {
635 if (parent_req && parent_req->status != HTTP_OK && parent_req->status != 413 && strcmp(r->protocol, "INCLUDED")) {

Completed in 50 milliseconds

12