Lines Matching refs:buf

198 php_mysqlnd_read_error_from_line(const zend_uchar * const buf, const size_t buf_len,  in php_mysqlnd_read_error_from_line()  argument
202 const zend_uchar *p = buf; in php_mysqlnd_read_error_from_line()
219 if ((buf_len - (p - buf)) >= MYSQLND_SQLSTATE_LENGTH) { in php_mysqlnd_read_error_from_line()
226 if ((buf_len - (p - buf)) > 0) { in php_mysqlnd_read_error_from_line()
227 error_msg_len = MIN((int)((buf_len - (p - buf))), (int) (error_buf_len - 1)); in php_mysqlnd_read_error_from_line()
289 zend_uchar * const buf, const size_t buf_size, in mysqlnd_read_packet_header_and_body() argument
294 DBG_INF_FMT("buf=%p size=%zu", buf, buf_size); 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()
334 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_greet_read() local
335 const zend_uchar * p = buf; in php_mysqlnd_greet_read()
336 const zend_uchar * const begin = buf; in php_mysqlnd_greet_read()
340 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "greeting… in php_mysqlnd_greet_read()
408 if ((size_t) (p - buf) < packet->header.size) { in php_mysqlnd_greet_read()
418 if ((size_t) (p - buf) < packet->header.size) { in php_mysqlnd_greet_read()
643 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_auth_response_read() local
644 const zend_uchar * p = buf; in php_mysqlnd_auth_response_read()
645 const zend_uchar * const begin = buf; in php_mysqlnd_auth_response_read()
649 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "OK", PRO… in php_mysqlnd_auth_response_read()
668 if (packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_auth_response_read()
673 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_auth_response_read()
699 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_auth_response_read()
795 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_ok_read() local
796 const zend_uchar * p = buf; in php_mysqlnd_ok_read()
797 const zend_uchar * const begin = buf; in php_mysqlnd_ok_read()
802 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "OK", PRO… in php_mysqlnd_ok_read()
835 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_ok_read()
889 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_eof_read() local
890 const zend_uchar * p = buf; in php_mysqlnd_eof_read()
891 const zend_uchar * const begin = buf; in php_mysqlnd_eof_read()
895 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "EOF", PR… in php_mysqlnd_eof_read()
1017 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_rset_header_read() local
1018 const zend_uchar * p = buf; in php_mysqlnd_rset_header_read()
1019 const zend_uchar * const begin = buf; in php_mysqlnd_rset_header_read()
1024 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "resultse… in php_mysqlnd_rset_header_read()
1079 if (packet->header.size > (size_t) (p - buf) && (len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_rset_header_read()
1146 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_rset_field_read() local
1147 const zend_uchar * p = buf; in php_mysqlnd_rset_field_read()
1148 const zend_uchar * const begin = buf; in php_mysqlnd_rset_field_read()
1155 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "field", … in php_mysqlnd_rset_field_read()
1236 if (packet->header.size > (size_t) (p - buf) && in php_mysqlnd_rset_field_read()
1365 zend_uchar *buf = NULL; in php_mysqlnd_read_row_ex() local
1367 buf = erealloc(buf, *data_size + header.size); in php_mysqlnd_read_row_ex()
1368 p = buf + *data_size; in php_mysqlnd_read_row_ex()
1375 efree(buf); in php_mysqlnd_read_row_ex()
1379 efree(buf); in php_mysqlnd_read_row_ex()
1385 if (buf) { in php_mysqlnd_read_row_ex()
1386 memcpy(buffer->ptr, buf, *data_size); in php_mysqlnd_read_row_ex()
1387 efree(buf); in php_mysqlnd_read_row_ex()
1723 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_stats_read() local
1727 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "statisti… in php_mysqlnd_stats_read()
1732 memcpy(packet->message.s, buf, packet->header.size); in php_mysqlnd_stats_read()
1767 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_prepare_read() local
1768 zend_uchar *p = buf; in php_mysqlnd_prepare_read()
1769 const zend_uchar * const begin = buf; in php_mysqlnd_prepare_read()
1774 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "prepare"… in php_mysqlnd_prepare_read()
1850 zend_uchar *buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_chg_user_read() local
1851 zend_uchar *p = buf; in php_mysqlnd_chg_user_read()
1852 const zend_uchar * const begin = buf; in php_mysqlnd_chg_user_read()
1856 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "change u… in php_mysqlnd_chg_user_read()
1870 …if (packet->header.size == 1 && buf[0] == EODATA_MARKER && (packet->server_capabilities & CLIENT_S… in php_mysqlnd_chg_user_read()
1885 if (packet->response_code == 0xFE && packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_chg_user_read()
1889 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_chg_user_read()
1961 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_sha256_pk_request_response_read() local
1962 const zend_uchar * p = buf; in php_mysqlnd_sha256_pk_request_response_read()
1963 const zend_uchar * const begin = buf; in php_mysqlnd_sha256_pk_request_response_read()
1968 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "SHA256_P… in php_mysqlnd_sha256_pk_request_response_read()
1976 packet->public_key_len = packet->header.size - (p - buf); in php_mysqlnd_sha256_pk_request_response_read()
2043 zend_uchar * const buf = (zend_uchar *) pfc->cmd_buffer.buffer; in php_mysqlnd_cached_sha2_result_read() local
2044 const zend_uchar * p = buf; in php_mysqlnd_cached_sha2_result_read()
2045 const zend_uchar * const begin = buf; in php_mysqlnd_cached_sha2_result_read()
2048 …and_body(&(packet->header), pfc, vio, stats, error_info, connection_state, buf, buf_len, "PROT_CAC… in php_mysqlnd_cached_sha2_result_read()
2066 if (packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_cached_sha2_result_read()
2071 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_cached_sha2_result_read()