Lines Matching refs:pfc
242 mysqlnd_read_header(MYSQLND_PFC * pfc, MYSQLND_VIO * vio, MYSQLND_PACKET_HEADER * header, in mysqlnd_read_header() argument
248 DBG_INF_FMT("compressed=%u", pfc->data->compressed); in mysqlnd_read_header()
249 if (FAIL == pfc->data->m.receive(pfc, vio, buffer, MYSQLND_HEADER_SIZE, conn_stats, error_info)) { in mysqlnd_read_header()
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()
272 pfc->data->packet_no, header->packet_no, header->size); in mysqlnd_read_header()
275 pfc->data->packet_no, header->packet_no, header->size); in mysqlnd_read_header()
284 MYSQLND_PFC * pfc, in mysqlnd_read_packet_header_and_body() argument
295 if (FAIL == mysqlnd_read_header(pfc, vio, packet_header, stats, error_info)) { in mysqlnd_read_packet_header_and_body()
307 if (FAIL == pfc->data->m.receive(pfc, vio, buf, packet_header->size, stats, error_info)) { in mysqlnd_read_packet_header_and_body()
332 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_greet_read() local
339 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_greet_read()
526 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_auth_write() local
658 …const size_t sent = pfc->data->m.send(pfc, vio, buffer, p - buffer - MYSQLND_HEADER_SIZE, stats, e… in php_mysqlnd_auth_write()
676 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_auth_response_read() local
681 size_t buf_len = pfc->cmd_buffer.buffer? pfc->cmd_buffer.length: AUTH_RESP_BUFFER_SIZE; in php_mysqlnd_auth_response_read()
682 zend_uchar *buf = pfc->cmd_buffer.buffer? (zend_uchar *) pfc->cmd_buffer.buffer : local_buf; in php_mysqlnd_auth_response_read()
690 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_auth_response_read()
806 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_change_auth_response_write() local
811 …zend_uchar * const buffer = pfc->cmd_buffer.length >= total_packet_size? pfc->cmd_buffer.buffer : … in php_mysqlnd_change_auth_response_write()
826 …const size_t sent = pfc->data->m.send(pfc, vio, buffer, p - buffer - MYSQLND_HEADER_SIZE, stats, e… in php_mysqlnd_change_auth_response_write()
827 if (buffer != pfc->cmd_buffer.buffer) { in php_mysqlnd_change_auth_response_write()
847 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_ok_read() local
852 const size_t buf_len = pfc->cmd_buffer.buffer? pfc->cmd_buffer.length : OK_BUFFER_SIZE; in php_mysqlnd_ok_read()
853 zend_uchar * const buf = pfc->cmd_buffer.buffer? (zend_uchar *) pfc->cmd_buffer.buffer : local_buf; in php_mysqlnd_ok_read()
860 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_ok_read()
942 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_eof_read() local
946 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_eof_read()
947 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_eof_read()
953 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_eof_read()
1010 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_cmd_write() local
1021 pfc->data->m.reset(pfc, stats, error_info); in php_mysqlnd_cmd_write()
1033 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cmd_write()
1037 tmp = (tmp_len > pfc->cmd_buffer.length)? mnd_emalloc(tmp_len):pfc->cmd_buffer.buffer; in php_mysqlnd_cmd_write()
1048 sent = pfc->data->m.send(pfc, vio, tmp, tmp_len - MYSQLND_HEADER_SIZE, stats, error_info); in php_mysqlnd_cmd_write()
1049 if (tmp != pfc->cmd_buffer.buffer) { in php_mysqlnd_cmd_write()
1069 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_rset_header_read() local
1074 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_header_read()
1075 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_rset_header_read()
1082 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_header_read()
1209 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_rset_field_read() local
1213 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_rset_field_read()
1215 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_rset_field_read()
1224 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_field_read()
1389 php_mysqlnd_read_row_ex(MYSQLND_PFC * pfc, in php_mysqlnd_read_row_ex() argument
1420 if (UNEXPECTED(FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info))) { in php_mysqlnd_read_row_ex()
1433 …if (UNEXPECTED(PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info))))… in php_mysqlnd_read_row_ex()
1440 if (FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info)) { in php_mysqlnd_read_row_ex()
1454 …if (UNEXPECTED(PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info))))… in php_mysqlnd_read_row_ex()
1725 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_rowp_read() local
1734 ret = php_mysqlnd_read_row_ex(pfc, vio, stats, error_info, &conn->state, in php_mysqlnd_rowp_read()
1798 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_stats_read() local
1802 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_stats_read()
1803 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_stats_read()
1807 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_stats_read()
1841 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_prepare_read() local
1846 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_prepare_read()
1847 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_prepare_read()
1854 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_prepare_read()
1924 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_chg_user_read() local
1929 const size_t buf_len = pfc->cmd_buffer.length; in php_mysqlnd_chg_user_read()
1930 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_chg_user_read()
1936 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_chg_user_read()
2014 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_sha256_pk_request_write() local
2023 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_sha256_pk_request_write()
2038 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_sha256_pk_request_response_read() local
2049 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_sha256_pk_request_response_read()
2091 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_cached_sha2_result_write() local
2102 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cached_sha2_result_write()
2107 sent = pfc->data->m.send(pfc, vio, buffer, packet->password_len, stats, error_info); in php_mysqlnd_cached_sha2_result_write()
2119 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in php_mysqlnd_cached_sha2_result_read() local
2128 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_cached_sha2_result_read()