Lines Matching refs:row

53 static inline void ps_fetch_over_read_error(const zend_uchar ** row)  in ps_fetch_over_read_error()  argument
56 *row = NULL; in ps_fetch_over_read_error()
60 const zend_uchar ** row, const zend_uchar *p, unsigned int length) in ps_fetch_is_packet_over_read_with_variable_length() argument
65 size_t length_len = *row - p; in ps_fetch_is_packet_over_read_with_variable_length()
67 ps_fetch_over_read_error(row); in ps_fetch_is_packet_over_read_with_variable_length()
74 const zend_uchar ** row, unsigned int length) in ps_fetch_is_packet_over_read_with_static_length() argument
77 ps_fetch_over_read_error(row); in ps_fetch_is_packet_over_read_with_static_length()
87 const zend_uchar ** row, unsigned int byte_count) in ps_fetch_from_1_to_8_bytes() argument
89 if (UNEXPECTED(ps_fetch_is_packet_over_read_with_static_length(pack_len, row, byte_count))) { in ps_fetch_from_1_to_8_bytes()
100 case 8:uval = is_bit? (uint64_t) bit_uint8korr(*row):(uint64_t) uint8korr(*row);break; in ps_fetch_from_1_to_8_bytes()
101 case 7:uval = bit_uint7korr(*row);break; in ps_fetch_from_1_to_8_bytes()
102 case 6:uval = bit_uint6korr(*row);break; in ps_fetch_from_1_to_8_bytes()
103 case 5:uval = bit_uint5korr(*row);break; in ps_fetch_from_1_to_8_bytes()
104 case 4:uval = is_bit? (uint64_t) bit_uint4korr(*row):(uint64_t) uint4korr(*row);break; in ps_fetch_from_1_to_8_bytes()
105 case 3:uval = is_bit? (uint64_t) bit_uint3korr(*row):(uint64_t) uint3korr(*row);break; in ps_fetch_from_1_to_8_bytes()
106 case 2:uval = is_bit? (uint64_t) bit_uint2korr(*row):(uint64_t) uint2korr(*row);break; in ps_fetch_from_1_to_8_bytes()
107 case 1:uval = (uint64_t) uint1korr(*row);break; in ps_fetch_from_1_to_8_bytes()
132 case 8:lval = (int64_t) sint8korr(*row);break; in ps_fetch_from_1_to_8_bytes()
137 case 4:lval = (int64_t) sint4korr(*row);break; in ps_fetch_from_1_to_8_bytes()
138 case 3:lval = (int64_t) sint3korr(*row);break; in ps_fetch_from_1_to_8_bytes()
139 case 2:lval = (int64_t) sint2korr(*row);break; in ps_fetch_from_1_to_8_bytes()
140 case 1:lval = (int64_t) *(int8_t*)*row;break; in ps_fetch_from_1_to_8_bytes()
154 (*row)+= byte_count; in ps_fetch_from_1_to_8_bytes()
162 …(zval *zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_null() argument
171 …zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_int8() argument
173 ps_fetch_from_1_to_8_bytes(zv, field, pack_len, row, 1); in ps_fetch_int8()
180 …zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_int16() argument
182 ps_fetch_from_1_to_8_bytes(zv, field, pack_len, row, 2); in ps_fetch_int16()
189 …zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_int32() argument
191 ps_fetch_from_1_to_8_bytes(zv, field, pack_len, row, 4); in ps_fetch_int32()
198 …zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_int64() argument
200 ps_fetch_from_1_to_8_bytes(zv, field, pack_len, row, 8); in ps_fetch_int64()
207 …zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_float() argument
213 if (UNEXPECTED(ps_fetch_is_packet_over_read_with_static_length(pack_len, row, 4))) { in ps_fetch_float()
217 float4get(fval, *row); in ps_fetch_float()
218 (*row)+= 4; in ps_fetch_float()
235 …zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_double() argument
240 if (UNEXPECTED(ps_fetch_is_packet_over_read_with_static_length(pack_len, row, 8))) { in ps_fetch_double()
244 float8get(value, *row); in ps_fetch_double()
246 (*row)+= 8; in ps_fetch_double()
255 …zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_time() argument
259 const zend_uchar *p = *row; in ps_fetch_time()
262 if ((length = php_mysqlnd_net_field_length(row))) { in ps_fetch_time()
263 if (UNEXPECTED(ps_fetch_is_packet_over_read_with_variable_length(pack_len, row, p, length))) { in ps_fetch_time()
267 const zend_uchar * to = *row; in ps_fetch_time()
284 (*row) += length; in ps_fetch_time()
305 …zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_date() argument
309 const zend_uchar *p = *row; in ps_fetch_date()
312 if ((length = php_mysqlnd_net_field_length(row))) { in ps_fetch_date()
313 if (UNEXPECTED(ps_fetch_is_packet_over_read_with_variable_length(pack_len, row, p, length))) { in ps_fetch_date()
317 const zend_uchar * to = *row; in ps_fetch_date()
328 (*row)+= length; in ps_fetch_date()
342 …zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_datetime() argument
346 const zend_uchar *p = *row; in ps_fetch_datetime()
349 if ((length = php_mysqlnd_net_field_length(row))) { in ps_fetch_datetime()
350 if (UNEXPECTED(ps_fetch_is_packet_over_read_with_variable_length(pack_len, row, p, length))) { in ps_fetch_datetime()
354 const zend_uchar * to = *row; in ps_fetch_datetime()
372 (*row)+= length; in ps_fetch_datetime()
393 …zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_string() argument
395 const zend_uchar *p = *row; in ps_fetch_string()
396 const zend_ulong length = php_mysqlnd_net_field_length(row); in ps_fetch_string()
397 if (UNEXPECTED(ps_fetch_is_packet_over_read_with_variable_length(pack_len, row, p, length))) { in ps_fetch_string()
403 ZVAL_STRINGL_FAST(zv, (char *)*row, length); in ps_fetch_string()
405 (*row) += length; in ps_fetch_string()
413 …zval * zv, const MYSQLND_FIELD * const field, const unsigned int pack_len, const zend_uchar ** row) in ps_fetch_bit() argument
415 const zend_uchar *p = *row; in ps_fetch_bit()
416 const zend_ulong length = php_mysqlnd_net_field_length(row); in ps_fetch_bit()
417 if (UNEXPECTED(ps_fetch_is_packet_over_read_with_variable_length(pack_len, row, p, length))) { in ps_fetch_bit()
420 ps_fetch_from_1_to_8_bytes(zv, field, pack_len, row, length); in ps_fetch_bit()