Lines Matching refs:parameter

387 	zval *parameter;  in pdo_mysql_stmt_param_hook()  local
415 if (!Z_ISREF(param->parameter)) { in pdo_mysql_stmt_param_hook()
416 parameter = &param->parameter; in pdo_mysql_stmt_param_hook()
418 parameter = Z_REFVAL(param->parameter); in pdo_mysql_stmt_param_hook()
422 if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_NULL || (Z_TYPE_P(parameter) == IS_NULL)) { in pdo_mysql_stmt_param_hook()
423 mysqlnd_stmt_bind_one_param(S->stmt, param->paramno, parameter, MYSQL_TYPE_NULL); in pdo_mysql_stmt_param_hook()
429 if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_NULL || Z_TYPE_P(parameter) == IS_NULL) { in pdo_mysql_stmt_param_hook()
444 if (!Z_ISREF(param->parameter)) { in pdo_mysql_stmt_param_hook()
445 parameter = &param->parameter; in pdo_mysql_stmt_param_hook()
447 parameter = Z_REFVAL(param->parameter); in pdo_mysql_stmt_param_hook()
449 if (Z_TYPE_P(parameter) == IS_RESOURCE) { in pdo_mysql_stmt_param_hook()
451 php_stream_from_zval_no_verify(stm, parameter); in pdo_mysql_stmt_param_hook()
454 zval_ptr_dtor(parameter); in pdo_mysql_stmt_param_hook()
455 ZVAL_STR(parameter, mem ? mem : ZSTR_EMPTY_ALLOC()); in pdo_mysql_stmt_param_hook()
469 PDO_DBG_INF_FMT("param->parameter->type=%d", Z_TYPE(param->parameter)); in pdo_mysql_stmt_param_hook()
470 if (!Z_ISREF(param->parameter)) { in pdo_mysql_stmt_param_hook()
471 parameter = &param->parameter; in pdo_mysql_stmt_param_hook()
473 parameter = Z_REFVAL(param->parameter); in pdo_mysql_stmt_param_hook()
475 switch (Z_TYPE_P(parameter)) { in pdo_mysql_stmt_param_hook()
477 mysqlnd_stmt_bind_one_param(S->stmt, param->paramno, parameter, MYSQL_TYPE_VAR_STRING); in pdo_mysql_stmt_param_hook()
481 mysqlnd_stmt_bind_one_param(S->stmt, param->paramno, parameter, MYSQL_TYPE_LONGLONG); in pdo_mysql_stmt_param_hook()
483 mysqlnd_stmt_bind_one_param(S->stmt, param->paramno, parameter, MYSQL_TYPE_LONG); in pdo_mysql_stmt_param_hook()
488 mysqlnd_stmt_bind_one_param(S->stmt, param->paramno, parameter, MYSQL_TYPE_TINY); in pdo_mysql_stmt_param_hook()
491 mysqlnd_stmt_bind_one_param(S->stmt, param->paramno, parameter, MYSQL_TYPE_DOUBLE); in pdo_mysql_stmt_param_hook()
499 PDO_DBG_INF_FMT("param->parameter->type=%d", Z_TYPE(param->parameter)); in pdo_mysql_stmt_param_hook()
500 if (!Z_ISREF(param->parameter)) { in pdo_mysql_stmt_param_hook()
501 parameter = &param->parameter; in pdo_mysql_stmt_param_hook()
503 parameter = Z_REFVAL(param->parameter); in pdo_mysql_stmt_param_hook()
505 switch (Z_TYPE_P(parameter)) { in pdo_mysql_stmt_param_hook()
508 b->buffer = Z_STRVAL_P(parameter); in pdo_mysql_stmt_param_hook()
509 b->buffer_length = Z_STRLEN_P(parameter); in pdo_mysql_stmt_param_hook()
510 *b->length = Z_STRLEN_P(parameter); in pdo_mysql_stmt_param_hook()
525 b->buffer = &Z_LVAL_P(parameter); in pdo_mysql_stmt_param_hook()
530 b->buffer = &Z_DVAL_P(parameter); in pdo_mysql_stmt_param_hook()