Lines Matching refs:i
55 unsigned int i = 0; in MYSQLND_METHOD() local
66 for (;i < meta->field_count; i++) { in MYSQLND_METHOD()
69 if (meta->fields[i].root) { in MYSQLND_METHOD()
71 mnd_pefree(meta->fields[i].root, meta->persistent); in MYSQLND_METHOD()
72 meta->fields[i].root = NULL; in MYSQLND_METHOD()
75 field_packet->metadata = &(meta->fields[i]); in MYSQLND_METHOD()
87 if (mysqlnd_ps_fetch_functions[meta->fields[i].type].func == NULL) { in MYSQLND_METHOD()
88 …nknown type %u sent by the server. Please send a report to the developers", meta->fields[i].type); in MYSQLND_METHOD()
89 …Unknown type %u sent by the server. Please send a report to the developers", meta->fields[i].type); in MYSQLND_METHOD()
95 …if ((meta->zend_hash_keys[i].is_numeric = ZEND_HANDLE_NUMERIC(field_packet->metadata->sname, idx))… in MYSQLND_METHOD()
96 meta->zend_hash_keys[i].key = idx; in MYSQLND_METHOD()
110 int i; in MYSQLND_METHOD() local
117 i = meta->field_count; in MYSQLND_METHOD()
118 while (i--) { in MYSQLND_METHOD()
142 unsigned int i; in MYSQLND_METHOD() local
175 for (i = 0; i < meta->field_count; i++) { in MYSQLND_METHOD()
177 new_fields[i].root = mnd_pemalloc(orig_fields[i].root_len, persistent); in MYSQLND_METHOD()
179 if (!new_fields[i].root) { in MYSQLND_METHOD()
183 memcpy(new_fields[i].root, orig_fields[i].root, new_fields[i].root_len); in MYSQLND_METHOD()
185 if (orig_fields[i].sname) { in MYSQLND_METHOD()
186 new_fields[i].sname = zend_string_copy(orig_fields[i].sname); in MYSQLND_METHOD()
187 new_fields[i].name = ZSTR_VAL(new_fields[i].sname); in MYSQLND_METHOD()
188 new_fields[i].name_length = ZSTR_LEN(new_fields[i].sname); in MYSQLND_METHOD()
191 if (orig_fields[i].org_name && orig_fields[i].org_name != mysqlnd_empty_string) { in MYSQLND_METHOD()
192 new_fields[i].org_name = new_fields[i].root + in MYSQLND_METHOD()
193 (orig_fields[i].org_name - orig_fields[i].root); in MYSQLND_METHOD()
195 if (orig_fields[i].table && orig_fields[i].table != mysqlnd_empty_string) { in MYSQLND_METHOD()
196 new_fields[i].table = new_fields[i].root + in MYSQLND_METHOD()
197 (orig_fields[i].table - orig_fields[i].root); in MYSQLND_METHOD()
199 if (orig_fields[i].org_table && orig_fields[i].org_table != mysqlnd_empty_string) { in MYSQLND_METHOD()
200 new_fields[i].org_table = new_fields[i].root + in MYSQLND_METHOD()
201 (orig_fields[i].org_table - orig_fields[i].root); in MYSQLND_METHOD()
203 if (orig_fields[i].db && orig_fields[i].db != mysqlnd_empty_string) { in MYSQLND_METHOD()
204 new_fields[i].db = new_fields[i].root + (orig_fields[i].db - orig_fields[i].root); in MYSQLND_METHOD()
206 if (orig_fields[i].catalog && orig_fields[i].catalog != mysqlnd_empty_string) { in MYSQLND_METHOD()
207 new_fields[i].catalog = new_fields[i].root + (orig_fields[i].catalog - orig_fields[i].root); in MYSQLND_METHOD()
210 if (orig_fields[i].def) { in MYSQLND_METHOD()
211 new_fields[i].def = mnd_pemalloc(orig_fields[i].def_length + 1, persistent); in MYSQLND_METHOD()
212 if (!new_fields[i].def) { in MYSQLND_METHOD()
216 memcpy(new_fields[i].def, orig_fields[i].def, orig_fields[i].def_length + 1); in MYSQLND_METHOD()