Lines Matching refs:header
30 if (UNEXPECTED((size_t)(p - begin) > packet->header.size)) { \
243 mysqlnd_read_header(MYSQLND_PFC * pfc, MYSQLND_VIO * vio, MYSQLND_PACKET_HEADER * header, in mysqlnd_read_header() argument
254 header->size = uint3korr(buffer); in mysqlnd_read_header()
255 header->packet_no = uint1korr(buffer + 3); in mysqlnd_read_header()
257 DBG_INF_FMT("HEADER: prot_packet_no=%u size=%3u", header->packet_no, header->size); in mysqlnd_read_header()
262 if (pfc->data->compressed || pfc->data->packet_no == header->packet_no) { in mysqlnd_read_header()
273 pfc->data->packet_no, header->packet_no, header->size); in mysqlnd_read_header()
276 pfc->data->packet_no, header->packet_no, header->size); in mysqlnd_read_header()
340 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_greet_read()
348 if (packet->header.size < sizeof(buf)) { in php_mysqlnd_greet_read()
353 buf[packet->header.size] = '\0'; in php_mysqlnd_greet_read()
361 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_greet_read()
410 if ((size_t) (p - buf) < packet->header.size) { in php_mysqlnd_greet_read()
420 if ((size_t) (p - buf) < packet->header.size) { in php_mysqlnd_greet_read()
458 DBG_ERR_FMT("GREET packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_greet_read()
460 p - begin - packet->header.size); in php_mysqlnd_greet_read()
658 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_auth_response_read()
667 buf[packet->header.size] = '\0'; in php_mysqlnd_auth_response_read()
675 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_auth_response_read()
683 if (packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_auth_response_read()
688 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_auth_response_read()
714 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_auth_response_read()
729 DBG_ERR_FMT("OK packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_auth_response_read()
731 p - begin - packet->header.size); in php_mysqlnd_auth_response_read()
816 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_ok_read()
827 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_ok_read()
849 if (packet->header.size > (size_t) (p - buf) && (net_len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_ok_read()
865 DBG_ERR_FMT("OK packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_ok_read()
867 p - begin - packet->header.size); in php_mysqlnd_ok_read()
909 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_eof_read()
920 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_eof_read()
932 if (packet->header.size > 1) { in php_mysqlnd_eof_read()
952 DBG_ERR_FMT("EOF packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_eof_read()
954 p - begin - packet->header.size); in php_mysqlnd_eof_read()
1047 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_header_read()
1060 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_rset_header_read()
1080 len = packet->header.size - 1; in php_mysqlnd_rset_header_read()
1107 if (packet->header.size > (size_t) (p - buf) && (len = php_mysqlnd_net_field_length(&p))) { in php_mysqlnd_rset_header_read()
1131 DBG_ERR_FMT("RSET_HEADER packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_rset_header_read()
1133 p - begin - packet->header.size); in php_mysqlnd_rset_header_read()
1190 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_rset_field_read()
1203 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_rset_field_read()
1209 } else if (EODATA_MARKER == *p && packet->header.size < 8) { in php_mysqlnd_rset_field_read()
1230 if ((size_t)((p - begin) + 12) > packet->header.size) { in php_mysqlnd_rset_field_read()
1270 if (packet->header.size > (size_t) (p - buf) && in php_mysqlnd_rset_field_read()
1342 DBG_ERR_FMT("RSET field packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_rset_field_read()
1344 "shorter than expected", p - begin - packet->header.size); in php_mysqlnd_rset_field_read()
1361 MYSQLND_PACKET_HEADER header; in php_mysqlnd_read_row_ex() local
1382 if (UNEXPECTED(FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info))) { in php_mysqlnd_read_row_ex()
1385 *data_size += header.size; in php_mysqlnd_read_row_ex()
1389 …if (UNEXPECTED(PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info))))… in php_mysqlnd_read_row_ex()
1393 while (header.size >= MYSQLND_MAX_PACKET_SIZE) { in php_mysqlnd_read_row_ex()
1394 if (FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info)) { in php_mysqlnd_read_row_ex()
1399 *data_size += header.size; in php_mysqlnd_read_row_ex()
1402 if (!header.size) { in php_mysqlnd_read_row_ex()
1409 …buffer->ptr = pool->resize_chunk(pool, buffer->ptr, *data_size - header.size, *data_size + preallo… in php_mysqlnd_read_row_ex()
1416 p = (zend_uchar *) buffer->ptr + (*data_size - header.size); in php_mysqlnd_read_row_ex()
1418 if (PASS != (ret = pfc->data->m.receive(pfc, vio, p, header.size, stats, error_info))) { in php_mysqlnd_read_row_ex()
1732 MYSQLND_HEADER_SIZE + packet->header.size, in php_mysqlnd_rowp_read()
1745 packet->header.size = data_size; in php_mysqlnd_rowp_read()
1846 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_stats_read()
1850 packet->message.s = mnd_emalloc(packet->header.size + 1); in php_mysqlnd_stats_read()
1851 memcpy(packet->message.s, buf, packet->header.size); in php_mysqlnd_stats_read()
1852 packet->message.s[packet->header.size] = '\0'; in php_mysqlnd_stats_read()
1853 packet->message.l = packet->header.size; in php_mysqlnd_stats_read()
1896 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_prepare_read()
1901 data_size = packet->header.size; in php_mysqlnd_prepare_read()
1952 DBG_ERR_FMT("PREPARE packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_prepare_read()
1954 p - begin - packet->header.size); in php_mysqlnd_prepare_read()
1978 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_chg_user_read()
1992 …if (packet->header.size == 1 && buf[0] == EODATA_MARKER && packet->server_capabilities & CLIENT_SE… in php_mysqlnd_chg_user_read()
1999 php_mysqlnd_read_error_from_line(p, packet->header.size - 1, in php_mysqlnd_chg_user_read()
2007 if (packet->response_code == 0xFE && packet->header.size > (size_t) (p - buf)) { in php_mysqlnd_chg_user_read()
2011 packet->new_auth_protocol_data_len = packet->header.size - (size_t) (p - buf); in php_mysqlnd_chg_user_read()
2022 DBG_ERR_FMT("CHANGE_USER packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_chg_user_read()
2024 p - begin - packet->header.size); in php_mysqlnd_chg_user_read()
2091 …if (FAIL == mysqlnd_read_packet_header_and_body(&(packet->header), pfc, vio, stats, error_info, co… in php_mysqlnd_sha256_pk_request_response_read()
2099 packet->public_key_len = packet->header.size - (p - buf); in php_mysqlnd_sha256_pk_request_response_read()
2107 DBG_ERR_FMT("OK packet %d bytes shorter than expected", p - begin - packet->header.size); in php_mysqlnd_sha256_pk_request_response_read()
2109 p - begin - packet->header.size); in php_mysqlnd_sha256_pk_request_response_read()
2217 packet->header.m = &packet_methods[PROT_GREET_PACKET]; in MYSQLND_METHOD()
2229 packet->header.m = &packet_methods[PROT_AUTH_PACKET]; in MYSQLND_METHOD()
2241 packet->header.m = &packet_methods[PROT_AUTH_RESP_PACKET]; in MYSQLND_METHOD()
2253 packet->header.m = &packet_methods[PROT_CHANGE_AUTH_RESP_PACKET]; in MYSQLND_METHOD()
2265 packet->header.m = &packet_methods[PROT_OK_PACKET]; in MYSQLND_METHOD()
2277 packet->header.m = &packet_methods[PROT_EOF_PACKET]; in MYSQLND_METHOD()
2289 packet->header.m = &packet_methods[PROT_CMD_PACKET]; in MYSQLND_METHOD()
2301 packet->header.m = &packet_methods[PROT_RSET_HEADER_PACKET]; in MYSQLND_METHOD()
2313 packet->header.m = &packet_methods[PROT_RSET_FLD_PACKET]; in MYSQLND_METHOD()
2325 packet->header.m = &packet_methods[PROT_ROW_PACKET]; in MYSQLND_METHOD()
2337 packet->header.m = &packet_methods[PROT_STATS_PACKET]; in MYSQLND_METHOD()
2349 packet->header.m = &packet_methods[PROT_PREPARE_RESP_PACKET]; in MYSQLND_METHOD()
2361 packet->header.m = &packet_methods[PROT_CHG_USER_RESP_PACKET]; in MYSQLND_METHOD()
2373 packet->header.m = &packet_methods[PROT_SHA256_PK_REQUEST_PACKET]; in MYSQLND_METHOD()
2385 packet->header.m = &packet_methods[PROT_SHA256_PK_REQUEST_RESPONSE_PACKET]; in MYSQLND_METHOD()