Searched refs:pfc (Results 1 – 8 of 8) sorted by relevance
/PHP-8.0/ext/mysqlnd/ |
H A D | mysqlnd_protocol_frame_codec.c | 36 pfc->data->packet_no = pfc->data->compressed_envelope_packet_no = 0; in MYSQLND_METHOD() 405 pfc->cmd_buffer.buffer = mnd_pemalloc(pfc->cmd_buffer.length, pfc->persistent); in MYSQLND_METHOD() 407 …pfc->cmd_buffer.buffer = mnd_perealloc(pfc->cmd_buffer.buffer, pfc->cmd_buffer.length, pfc->persis… in MYSQLND_METHOD() 431 mnd_pefree(pfc->data->sha256_server_public_key, pfc->persistent); in MYSQLND_METHOD() 460 if (pfc) { in MYSQLND_METHOD() 461 pfc->data->m.free_contents(pfc); in MYSQLND_METHOD() 465 mnd_pefree(pfc->cmd_buffer.buffer, pfc->persistent); in MYSQLND_METHOD() 469 mnd_pefree(pfc, pfc->persistent); in MYSQLND_METHOD() 507 DBG_RETURN(pfc); in mysqlnd_pfc_init() 517 if (pfc) { in mysqlnd_pfc_free() [all …]
|
H A D | mysqlnd_driver.c | 248 MYSQLND_PFC * pfc = mnd_pecalloc(1, pfc_alloc_size + pfc_data_alloc_size, persistent); in MYSQLND_METHOD() local 252 if (pfc) { in MYSQLND_METHOD() 253 pfc->data = (MYSQLND_PFC_DATA*)((char*)pfc + pfc_alloc_size); in MYSQLND_METHOD() 254 pfc->persistent = pfc->data->persistent = persistent; in MYSQLND_METHOD() 255 pfc->data->m = *mysqlnd_pfc_get_methods(); in MYSQLND_METHOD() 257 if (PASS != pfc->data->m.init(pfc, stats, error_info)) { in MYSQLND_METHOD() 258 pfc->data->m.dtor(pfc, stats, error_info); in MYSQLND_METHOD() 259 pfc = NULL; in MYSQLND_METHOD() 262 DBG_RETURN(pfc); in MYSQLND_METHOD()
|
H A D | mysqlnd_wireprotocol.c | 261 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() 2075 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_sha256_pk_request_write() 2154 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cached_sha2_result_write() [all …]
|
H A D | mysqlnd_ext_plugin.h | 32 void ** (*get_pfc_area)(const MYSQLND_PFC * pfc, const unsigned int plugin_id); 46 #define mysqlnd_plugin_get_plugin_pfc_data(pfc, p_id) mysqlnd_plugin_area_getters.get_pfc_area(… argument 104 } pfc; member 152 #define mysqlnd_pfc_get_methods() mysqlnd_plugin_methods_xetters.pfc.get() 153 #define mysqlnd_pfc_set_methods(m) mysqlnd_plugin_methods_xetters.pfc.set((m))
|
H A D | mysqlnd_protocol_frame_codec.h | 22 PHPAPI void mysqlnd_pfc_free(MYSQLND_PFC * const pfc, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * e…
|
H A D | mysqlnd_ext_plugin.c | 144 mysqlnd_plugin__get_plugin_pfc_data(const MYSQLND_PFC * pfc, const unsigned int plugin_id) in mysqlnd_plugin__get_plugin_pfc_data() argument 148 if (!pfc || plugin_id >= mysqlnd_plugin_count()) { in mysqlnd_plugin__get_plugin_pfc_data() 151 DBG_RETURN((void *)((char *)pfc + sizeof(MYSQLND_PFC) + plugin_id * sizeof(void *))); in mysqlnd_plugin__get_plugin_pfc_data()
|
H A D | mysqlnd_structs.h | 1116 typedef enum_func_status (*func_mysqlnd_pfc__init)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const s… 1117 typedef void (*func_mysqlnd_pfc__dtor)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const conn_stats… 1118 typedef enum_func_status (*func_mysqlnd_pfc__reset)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const … 1119 typedef enum_func_status (*func_mysqlnd_pfc__set_client_option)(MYSQLND_PFC * const pfc, enum_mysql… 1122 typedef size_t (*func_mysqlnd_pfc__send)(MYSQLND_PFC * const pfc, MYSQLND_VIO * const vio, zend_… 1123 typedef enum_func_status (*func_mysqlnd_pfc__receive)(MYSQLND_PFC * const pfc, MYSQLND_VIO * const … 1124 …fc__read_compressed_packet_from_stream_and_fill_read_buffer)(MYSQLND_PFC * pfc, MYSQLND_VIO * cons… 1125 typedef void (*func_mysqlnd_pfc__free_contents)(MYSQLND_PFC * pfc);
|
H A D | mysqlnd_connection.c | 478 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in MYSQLND_METHOD() local 494 if (pfc && pfc->data->flags & MYSQLND_PROTOCOL_FLAG_USE_COMPRESSION) { in MYSQLND_METHOD() 600 MYSQLND_PFC * pfc = conn->protocol_frame_codec; local 629 if (pfc->data->compressed) { 636 pfc->data->compressed = FALSE; 638 if (pfc->data->ssl) { 639 pfc->data->ssl = FALSE; 683 pfc->data->compressed = TRUE; 690 pfc->data->compressed = mysql_flags & CLIENT_COMPRESS? TRUE:FALSE;
|
Completed in 56 milliseconds