Home
last modified time | relevance | path

Searched refs:pfc (Results 1 – 8 of 8) sorted by relevance

/PHP-8.1/ext/mysqlnd/
H A Dmysqlnd_protocol_frame_codec.c36 pfc->data->packet_no = pfc->data->compressed_envelope_packet_no = 0; in MYSQLND_METHOD()
406 pfc->cmd_buffer.buffer = mnd_pemalloc(pfc->cmd_buffer.length, pfc->persistent); in MYSQLND_METHOD()
408pfc->cmd_buffer.buffer = mnd_perealloc(pfc->cmd_buffer.buffer, pfc->cmd_buffer.length, pfc->persis… in MYSQLND_METHOD()
432 mnd_pefree(pfc->data->sha256_server_public_key, pfc->persistent); in MYSQLND_METHOD()
461 if (pfc) { in MYSQLND_METHOD()
462 pfc->data->m.free_contents(pfc); in MYSQLND_METHOD()
466 mnd_pefree(pfc->cmd_buffer.buffer, pfc->persistent); in MYSQLND_METHOD()
470 mnd_pefree(pfc, pfc->persistent); in MYSQLND_METHOD()
508 DBG_RETURN(pfc); in mysqlnd_pfc_init()
518 if (pfc) { in mysqlnd_pfc_free()
[all …]
H A Dmysqlnd_driver.c224 MYSQLND_PFC * pfc = mnd_pecalloc(1, pfc_alloc_size + pfc_data_alloc_size, persistent); in MYSQLND_METHOD() local
228 if (pfc) { in MYSQLND_METHOD()
229 pfc->data = (MYSQLND_PFC_DATA*)((char*)pfc + pfc_alloc_size); in MYSQLND_METHOD()
230 pfc->persistent = pfc->data->persistent = persistent; in MYSQLND_METHOD()
231 pfc->data->m = *mysqlnd_pfc_get_methods(); in MYSQLND_METHOD()
233 if (PASS != pfc->data->m.init(pfc, stats, error_info)) { in MYSQLND_METHOD()
234 pfc->data->m.dtor(pfc, stats, error_info); in MYSQLND_METHOD()
235 pfc = NULL; in MYSQLND_METHOD()
238 DBG_RETURN(pfc); in MYSQLND_METHOD()
H A Dmysqlnd_wireprotocol.c261 if (pfc->data->compressed || pfc->data->packet_no == header->packet_no) { in mysqlnd_read_header()
267 pfc->data->packet_no++; in mysqlnd_read_header()
284 MYSQLND_PFC * pfc, in mysqlnd_read_packet_header_and_body() argument
307 if (FAIL == pfc->data->m.receive(pfc, vio, buf, packet_header->size, stats, error_info)) { in mysqlnd_read_packet_header_and_body()
658 size_t buf_len = pfc->cmd_buffer.buffer? pfc->cmd_buffer.length: AUTH_RESP_BUFFER_SIZE; in php_mysqlnd_auth_response_read()
822 const size_t buf_len = pfc->cmd_buffer.buffer? pfc->cmd_buffer.length : OK_BUFFER_SIZE; in php_mysqlnd_ok_read()
991 pfc->data->m.reset(pfc, stats, error_info); in php_mysqlnd_cmd_write()
1003 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cmd_write()
1971 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_sha256_pk_request_write()
2050 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cached_sha2_result_write()
[all …]
H A Dmysqlnd_ext_plugin.h31 void ** (*get_pfc_area)(const MYSQLND_PFC * pfc, const unsigned int plugin_id);
44 #define mysqlnd_plugin_get_plugin_pfc_data(pfc, p_id) mysqlnd_plugin_area_getters.get_pfc_area(… argument
102 } pfc; member
150 #define mysqlnd_pfc_get_methods() mysqlnd_plugin_methods_xetters.pfc.get()
151 #define mysqlnd_pfc_set_methods(m) mysqlnd_plugin_methods_xetters.pfc.set((m))
H A Dmysqlnd_protocol_frame_codec.h22 PHPAPI void mysqlnd_pfc_free(MYSQLND_PFC * const pfc, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * e…
H A Dmysqlnd_ext_plugin.c130 mysqlnd_plugin__get_plugin_pfc_data(const MYSQLND_PFC * pfc, const unsigned int plugin_id) in mysqlnd_plugin__get_plugin_pfc_data() argument
134 if (!pfc || plugin_id >= mysqlnd_plugin_count()) { in mysqlnd_plugin__get_plugin_pfc_data()
137 DBG_RETURN((void *)((char *)pfc + sizeof(MYSQLND_PFC) + plugin_id * sizeof(void *))); in mysqlnd_plugin__get_plugin_pfc_data()
H A Dmysqlnd_structs.h1088 typedef enum_func_status (*func_mysqlnd_pfc__init)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const s…
1089 typedef void (*func_mysqlnd_pfc__dtor)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const conn_stats…
1090 typedef enum_func_status (*func_mysqlnd_pfc__reset)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const …
1091 typedef enum_func_status (*func_mysqlnd_pfc__set_client_option)(MYSQLND_PFC * const pfc, enum_mysql…
1094 typedef size_t (*func_mysqlnd_pfc__send)(MYSQLND_PFC * const pfc, MYSQLND_VIO * const vio, zend_…
1095 typedef enum_func_status (*func_mysqlnd_pfc__receive)(MYSQLND_PFC * const pfc, MYSQLND_VIO * const …
1096 …fc__read_compressed_packet_from_stream_and_fill_read_buffer)(MYSQLND_PFC * pfc, MYSQLND_VIO * cons…
1097 typedef void (*func_mysqlnd_pfc__free_contents)(MYSQLND_PFC * pfc);
H A Dmysqlnd_connection.c450 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in MYSQLND_METHOD() local
466 if (pfc && pfc->data->flags & MYSQLND_PROTOCOL_FLAG_USE_COMPRESSION) { in MYSQLND_METHOD()
570 MYSQLND_PFC * pfc = conn->protocol_frame_codec; local
594 if (pfc->data->compressed) {
601 pfc->data->compressed = FALSE;
603 if (pfc->data->ssl) {
604 pfc->data->ssl = FALSE;
648 pfc->data->compressed = TRUE;
655 pfc->data->compressed = mysql_flags & CLIENT_COMPRESS? TRUE:FALSE;

Completed in 70 milliseconds