Lines Matching refs:ofs

187 	int				i, ofs;  in mysqli_stmt_bind_param_do_bind()  local
199 ofs = 0; in mysqli_stmt_bind_param_do_bind()
208 switch (types[ofs]) { in mysqli_stmt_bind_param_do_bind()
210 bind[ofs].buffer_type = MYSQL_TYPE_DOUBLE; in mysqli_stmt_bind_param_do_bind()
211 bind[ofs].buffer = &Z_DVAL_P(param); in mysqli_stmt_bind_param_do_bind()
212 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
217 bind[ofs].buffer_type = MYSQL_TYPE_LONGLONG; in mysqli_stmt_bind_param_do_bind()
219 bind[ofs].buffer_type = MYSQL_TYPE_LONG; in mysqli_stmt_bind_param_do_bind()
221 bind[ofs].buffer = &Z_LVAL_P(param); in mysqli_stmt_bind_param_do_bind()
222 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
226 bind[ofs].buffer_type = MYSQL_TYPE_LONG_BLOB; in mysqli_stmt_bind_param_do_bind()
231 bind[ofs].buffer_type = MYSQL_TYPE_VAR_STRING; in mysqli_stmt_bind_param_do_bind()
233 bind[ofs].is_null = &stmt->param.is_null[ofs]; in mysqli_stmt_bind_param_do_bind()
237 php_error_docref(NULL, E_WARNING, "Undefined fieldtype %c (parameter %d)", types[ofs], i+1); in mysqli_stmt_bind_param_do_bind()
241 ofs++; in mysqli_stmt_bind_param_do_bind()
392 int i, ofs; in mysqli_stmt_bind_result_do_bind() local
412 ofs = i; in mysqli_stmt_bind_result_do_bind()
413 col_type = (stmt->stmt->fields) ? stmt->stmt->fields[ofs].type : MYSQL_TYPE_STRING; in mysqli_stmt_bind_result_do_bind()
417 stmt->result.buf[ofs].type = IS_DOUBLE; in mysqli_stmt_bind_result_do_bind()
418 stmt->result.buf[ofs].buflen = sizeof(float); in mysqli_stmt_bind_result_do_bind()
420 stmt->result.buf[ofs].val = (char *)emalloc(sizeof(float)); in mysqli_stmt_bind_result_do_bind()
421 bind[ofs].buffer_type = MYSQL_TYPE_FLOAT; in mysqli_stmt_bind_result_do_bind()
422 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
423 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
427 stmt->result.buf[ofs].type = IS_DOUBLE; in mysqli_stmt_bind_result_do_bind()
428 stmt->result.buf[ofs].buflen = sizeof(double); in mysqli_stmt_bind_result_do_bind()
431 stmt->result.buf[ofs].val = (char *)emalloc(sizeof(double)); in mysqli_stmt_bind_result_do_bind()
432 bind[ofs].buffer_type = MYSQL_TYPE_DOUBLE; in mysqli_stmt_bind_result_do_bind()
433 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
434 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
438 stmt->result.buf[ofs].type = IS_NULL; in mysqli_stmt_bind_result_do_bind()
446 bind[ofs].buffer_type = MYSQL_TYPE_NULL; in mysqli_stmt_bind_result_do_bind()
447 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
455 stmt->result.buf[ofs].type = IS_LONG; in mysqli_stmt_bind_result_do_bind()
457 stmt->result.buf[ofs].val = (char *)emalloc(sizeof(int)); in mysqli_stmt_bind_result_do_bind()
458 bind[ofs].buffer_type = MYSQL_TYPE_LONG; in mysqli_stmt_bind_result_do_bind()
459 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
460 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
461 bind[ofs].is_unsigned = (stmt->stmt->fields[ofs].flags & UNSIGNED_FLAG) ? 1 : 0; in mysqli_stmt_bind_result_do_bind()
468 stmt->result.buf[ofs].type = IS_STRING; in mysqli_stmt_bind_result_do_bind()
469 stmt->result.buf[ofs].buflen = sizeof(my_ulonglong); in mysqli_stmt_bind_result_do_bind()
470 stmt->result.buf[ofs].val = (char *)emalloc(stmt->result.buf[ofs].buflen); in mysqli_stmt_bind_result_do_bind()
471 bind[ofs].buffer_type = col_type; in mysqli_stmt_bind_result_do_bind()
472 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
473 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
474 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
475 bind[ofs].is_unsigned = (stmt->stmt->fields[ofs].flags & UNSIGNED_FLAG) ? 1 : 0; in mysqli_stmt_bind_result_do_bind()
476 bind[ofs].length = &stmt->result.buf[ofs].output_len; in mysqli_stmt_bind_result_do_bind()
502 stmt->result.buf[ofs].type = IS_STRING; in mysqli_stmt_bind_result_do_bind()
508 if (stmt->stmt->fields[ofs].max_length == 0 && in mysqli_stmt_bind_result_do_bind()
517 stmt->result.buf[ofs].buflen = in mysqli_stmt_bind_result_do_bind()
518 …(stmt->stmt->fields) ? (stmt->stmt->fields[ofs].length) ? stmt->stmt->fields[ofs].length + 1: 256:… in mysqli_stmt_bind_result_do_bind()
525 if (!(stmt->result.buf[ofs].buflen = stmt->stmt->fields[ofs].max_length)) in mysqli_stmt_bind_result_do_bind()
526 ++stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
528 stmt->result.buf[ofs].val = (char *)emalloc(stmt->result.buf[ofs].buflen); in mysqli_stmt_bind_result_do_bind()
529 bind[ofs].buffer_type = MYSQL_TYPE_STRING; in mysqli_stmt_bind_result_do_bind()
530 bind[ofs].buffer = stmt->result.buf[ofs].val; in mysqli_stmt_bind_result_do_bind()
531 bind[ofs].is_null = &stmt->result.is_null[ofs]; in mysqli_stmt_bind_result_do_bind()
532 bind[ofs].buffer_length = stmt->result.buf[ofs].buflen; in mysqli_stmt_bind_result_do_bind()
533 bind[ofs].length = &stmt->result.buf[ofs].output_len; in mysqli_stmt_bind_result_do_bind()