Lines Matching refs:fields
78 $fields = array();
80 $fields['res'][] = $info;
83 $fields['meta'][] = $info;
85 $fields['all_res'] = $res->fetch_fields();
86 $fields['all_meta'] = $res_meta->fetch_fields();
88 if (count($fields['res']) != count($fields['meta'])) {
89 … printf("[014] stmt_get_result indicates %d fields, stmt_result_metadata indicates %d fields\n",
90 count($fields['res']),
91 count($fields['meta']));
94 foreach ($fields['res'] as $k => $info) {
96 if ($info->name !== $fields['meta'][$k]->name)
98 …$k, gettype($info->name), $info->name, gettype($fields['meta'][$k]->name), $fields['meta'][$k]->na…
100 if ($info->orgname !== $fields['meta'][$k]->orgname)
102 …$k, gettype($info->orgname), $info->orgname, gettype($fields['meta'][$k]->orgname), $fields['meta'…
104 if ($info->table !== $fields['meta'][$k]->table)
106 …$k, gettype($info->table), $info->table, gettype($fields['meta'][$k]->table), $fields['meta'][$k]-…
108 if ($info->orgtable !== $fields['meta'][$k]->orgtable)
110 …$k, gettype($info->orgtable), $info->orgtable, gettype($fields['meta'][$k]->orgtable), $fields['me…
112 if ($info->def !== $fields['meta'][$k]->def)
114 … $k, gettype($info->def), $info->def, gettype($fields['meta'][$k]->def), $fields['meta'][$k]->def);
116 if ($info->max_length !== $fields['meta'][$k]->max_length)
118 …gettype($info->max_length), $info->max_length, gettype($fields['meta'][$k]->max_length), $fields['…
120 if ($info->length !== $fields['meta'][$k]->length)
122 …$k, gettype($info->length), $info->length, gettype($fields['meta'][$k]->length), $fields['meta'][$…
124 if ($info->charsetnr !== $fields['meta'][$k]->charsetnr)
126 …k, gettype($info->charsetnr), $info->charsetnr, gettype($fields['meta'][$k]->charsetnr), $fields['…
128 if ($info->flags !== $fields['meta'][$k]->flags)
130 …$k, gettype($info->flags), $info->flags, gettype($fields['meta'][$k]->flags), $fields['meta'][$k]-…
132 if ($info->type !== $fields['meta'][$k]->type)
134 …$k, gettype($info->type), $info->type, gettype($fields['meta'][$k]->type), $fields['meta'][$k]->ty…
136 if ($info->decimals !== $fields['meta'][$k]->decimals)
138 …decimals($info->decimals), $info->decimals, getdecimals($fields['meta'][$k]->decimals), $fields['m…
141 $tmp = $fields['all_res'][$k]->max_length;
142 $fields['all_res'][$k]->max_length = $fields['all_meta'][$k]->max_length;
144 if ($fields['all_res'][$k] != $fields['all_meta'][$k]) {
146 var_dump($fields['all_res'][$k]);
147 var_dump($fields['all_meta'][$k]);
149 $fields['all_res'][$k]->max_length = $tmp;
152 $num = count($fields['res']);
170 if ($tmp1 != $fields['res'][$pos]) {
173 var_dump($fields['res'][$pos]);