Searched refs:pfc (Results 1 – 8 of 8) sorted by relevance
/PHP-7.3/ext/mysqlnd/ |
H A D | mysqlnd_protocol_frame_codec.c | 38 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 | 250 MYSQLND_PFC * pfc = mnd_pecalloc(1, pfc_alloc_size + pfc_data_alloc_size, persistent); in MYSQLND_METHOD() local 254 if (pfc) { in MYSQLND_METHOD() 255 pfc->data = (MYSQLND_PFC_DATA*)((char*)pfc + pfc_alloc_size); in MYSQLND_METHOD() 256 pfc->persistent = pfc->data->persistent = persistent; in MYSQLND_METHOD() 257 pfc->data->m = *mysqlnd_pfc_get_methods(); in MYSQLND_METHOD() 259 if (PASS != pfc->data->m.init(pfc, stats, error_info)) { in MYSQLND_METHOD() 260 pfc->data->m.dtor(pfc, stats, error_info); in MYSQLND_METHOD() 261 pfc = NULL; in MYSQLND_METHOD() 264 DBG_RETURN(pfc); in MYSQLND_METHOD()
|
H A D | mysqlnd_wireprotocol.c | 262 if (pfc->data->compressed || pfc->data->packet_no == header->packet_no) { in mysqlnd_read_header() 268 pfc->data->packet_no++; in mysqlnd_read_header() 285 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() 649 size_t buf_len = pfc->cmd_buffer.buffer? pfc->cmd_buffer.length: AUTH_RESP_BUFFER_SIZE; in php_mysqlnd_auth_response_read() 650 zend_uchar *buf = pfc->cmd_buffer.buffer? (zend_uchar *) pfc->cmd_buffer.buffer : local_buf; in php_mysqlnd_auth_response_read() 808 size_t buf_len = pfc->cmd_buffer.buffer? pfc->cmd_buffer.length : OK_BUFFER_SIZE; in php_mysqlnd_ok_read() 978 pfc->data->m.reset(pfc, stats, error_info); in php_mysqlnd_cmd_write() 994 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cmd_write() 998 tmp = (tmp_len > pfc->cmd_buffer.length)? mnd_emalloc(tmp_len):pfc->cmd_buffer.buffer; in php_mysqlnd_cmd_write() [all …]
|
H A D | mysqlnd_ext_plugin.h | 34 void ** (*get_pfc_area)(const MYSQLND_PFC * pfc, const unsigned int plugin_id); 48 #define mysqlnd_plugin_get_plugin_pfc_data(pfc, p_id) mysqlnd_plugin_area_getters.get_pfc_area(… argument 106 } pfc; member 154 #define mysqlnd_pfc_get_methods() mysqlnd_plugin_methods_xetters.pfc.get() 155 #define mysqlnd_pfc_set_methods(m) mysqlnd_plugin_methods_xetters.pfc.set((m))
|
H A D | mysqlnd_protocol_frame_codec.h | 24 PHPAPI void mysqlnd_pfc_free(MYSQLND_PFC * const pfc, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * e…
|
H A D | mysqlnd_ext_plugin.c | 146 mysqlnd_plugin__get_plugin_pfc_data(const MYSQLND_PFC * pfc, const unsigned int plugin_id) in mysqlnd_plugin__get_plugin_pfc_data() argument 150 if (!pfc || plugin_id >= mysqlnd_plugin_count()) { in mysqlnd_plugin__get_plugin_pfc_data() 153 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 | 1065 typedef enum_func_status (*func_mysqlnd_pfc__init)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const s… 1066 typedef void (*func_mysqlnd_pfc__dtor)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const conn_stats… 1067 typedef enum_func_status (*func_mysqlnd_pfc__reset)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const … 1068 typedef enum_func_status (*func_mysqlnd_pfc__set_client_option)(MYSQLND_PFC * const pfc, enum_mysql… 1071 typedef size_t (*func_mysqlnd_pfc__send)(MYSQLND_PFC * const pfc, MYSQLND_VIO * const vio, zend_… 1072 typedef enum_func_status (*func_mysqlnd_pfc__receive)(MYSQLND_PFC * const pfc, MYSQLND_VIO * const … 1073 …fc__read_compressed_packet_from_stream_and_fill_read_buffer)(MYSQLND_PFC * pfc, MYSQLND_VIO * cons… 1074 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 44 milliseconds