Lines Matching refs:i
143 unsigned int i = 0; in MYSQLND_METHOD() local
158 for (;i < meta->field_count; i++) { in MYSQLND_METHOD()
161 if (meta->fields[i].root) { in MYSQLND_METHOD()
163 mnd_pefree(meta->fields[i].root, meta->persistent); in MYSQLND_METHOD()
164 meta->fields[i].root = NULL; in MYSQLND_METHOD()
167 field_packet->metadata = &(meta->fields[i]); in MYSQLND_METHOD()
180 meta->field_count = i; in MYSQLND_METHOD()
184 if (mysqlnd_ps_fetch_functions[meta->fields[i].type].func == NULL) { in MYSQLND_METHOD()
186 meta->fields[i].type); in MYSQLND_METHOD()
190 meta->fields[i].type); in MYSQLND_METHOD()
194 if (meta->fields[i].type == MYSQL_TYPE_BIT) { in MYSQLND_METHOD()
199 field_len = meta->fields[i].length / 8; in MYSQLND_METHOD()
204 if (meta->fields[i].length % 8) { in MYSQLND_METHOD()
231 meta->fields[i].name, in MYSQLND_METHOD()
232 meta->fields[i].name_length TSRMLS_CC); in MYSQLND_METHOD()
233 if ((meta->zend_hash_keys[i].is_numeric = in MYSQLND_METHOD()
236 meta->zend_hash_keys[i].key = idx; in MYSQLND_METHOD()
239 meta->zend_hash_keys[i].ustr.u = ustr; in MYSQLND_METHOD()
240 meta->zend_hash_keys[i].ulen = ulen; in MYSQLND_METHOD()
241 meta->zend_hash_keys[i].key = zend_u_get_hash_value(IS_UNICODE, ZSTR(ustr), ulen + 1); in MYSQLND_METHOD()
245 if ((meta->zend_hash_keys[i].is_numeric = in MYSQLND_METHOD()
250 meta->zend_hash_keys[i].key = idx; in MYSQLND_METHOD()
252 meta->zend_hash_keys[i].key = in MYSQLND_METHOD()
269 int i; in MYSQLND_METHOD() local
276 i = meta->field_count; in MYSQLND_METHOD()
277 while (i--) { in MYSQLND_METHOD()
288 for (i = 0; i < meta->field_count; i++) { in MYSQLND_METHOD()
289 if (meta->zend_hash_keys[i].ustr.v) { in MYSQLND_METHOD()
290 mnd_pefree(meta->zend_hash_keys[i].ustr.v, meta->persistent); in MYSQLND_METHOD()
310 unsigned int i; in MYSQLND_METHOD() local
343 for (i = 0; i < meta->field_count; i++) { in MYSQLND_METHOD()
345 new_fields[i].root = mnd_pemalloc(orig_fields[i].root_len, persistent); in MYSQLND_METHOD()
346 if (!new_fields[i].root) { in MYSQLND_METHOD()
349 memcpy(new_fields[i].root, orig_fields[i].root, new_fields[i].root_len); in MYSQLND_METHOD()
351 if (orig_fields[i].name && orig_fields[i].name != mysqlnd_empty_string) { in MYSQLND_METHOD()
352 new_fields[i].name = new_fields[i].root + in MYSQLND_METHOD()
353 (orig_fields[i].name - orig_fields[i].root); in MYSQLND_METHOD()
355 if (orig_fields[i].org_name && orig_fields[i].org_name != mysqlnd_empty_string) { in MYSQLND_METHOD()
356 new_fields[i].org_name = new_fields[i].root + in MYSQLND_METHOD()
357 (orig_fields[i].org_name - orig_fields[i].root); in MYSQLND_METHOD()
359 if (orig_fields[i].table && orig_fields[i].table != mysqlnd_empty_string) { in MYSQLND_METHOD()
360 new_fields[i].table = new_fields[i].root + in MYSQLND_METHOD()
361 (orig_fields[i].table - orig_fields[i].root); in MYSQLND_METHOD()
363 if (orig_fields[i].org_table && orig_fields[i].org_table != mysqlnd_empty_string) { in MYSQLND_METHOD()
364 new_fields[i].org_table = new_fields[i].root + in MYSQLND_METHOD()
365 (orig_fields[i].org_table - orig_fields[i].root); in MYSQLND_METHOD()
367 if (orig_fields[i].db && orig_fields[i].db != mysqlnd_empty_string) { in MYSQLND_METHOD()
368 new_fields[i].db = new_fields[i].root + (orig_fields[i].db - orig_fields[i].root); in MYSQLND_METHOD()
370 if (orig_fields[i].catalog && orig_fields[i].catalog != mysqlnd_empty_string) { in MYSQLND_METHOD()
371 new_fields[i].catalog = new_fields[i].root + (orig_fields[i].catalog - orig_fields[i].root); in MYSQLND_METHOD()
374 if (orig_fields[i].def) { in MYSQLND_METHOD()
375 new_fields[i].def = mnd_pemalloc(orig_fields[i].def_length + 1, persistent); in MYSQLND_METHOD()
376 if (!new_fields[i].def) { in MYSQLND_METHOD()
380 memcpy(new_fields[i].def, orig_fields[i].def, orig_fields[i].def_length + 1); in MYSQLND_METHOD()
383 if (new_meta->zend_hash_keys[i].ustr.u) { in MYSQLND_METHOD()
384 new_meta->zend_hash_keys[i].ustr.u = in MYSQLND_METHOD()
385 eustrndup(new_meta->zend_hash_keys[i].ustr.u, new_meta->zend_hash_keys[i].ulen); in MYSQLND_METHOD()
386 if (!new_meta->zend_hash_keys[i].ustr.u) { in MYSQLND_METHOD()