Lines Matching refs:parameter
177 zval *parameter; in odbc_stmt_execute() local
180 if (Z_ISREF(param->parameter)) { in odbc_stmt_execute()
181 parameter = Z_REFVAL(param->parameter); in odbc_stmt_execute()
183 parameter = ¶m->parameter; in odbc_stmt_execute()
185 if (Z_TYPE_P(parameter) != IS_RESOURCE) { in odbc_stmt_execute()
188 convert_to_string(parameter); in odbc_stmt_execute()
191 Z_STRVAL_P(parameter), in odbc_stmt_execute()
192 Z_STRLEN_P(parameter), in odbc_stmt_execute()
195 rc1 = SQLPutData(S->stmt, Z_STRVAL_P(parameter), in odbc_stmt_execute()
196 Z_STRLEN_P(parameter)); in odbc_stmt_execute()
221 php_stream_from_zval_no_verify(stm, parameter); in odbc_stmt_execute()
293 zval *parameter; in odbc_stmt_param_hook() local
408 if (!Z_ISREF(param->parameter)) { in odbc_stmt_param_hook()
409 parameter = ¶m->parameter; in odbc_stmt_param_hook()
411 parameter = Z_REFVAL(param->parameter); in odbc_stmt_param_hook()
415 if (Z_TYPE_P(parameter) == IS_RESOURCE) { in odbc_stmt_param_hook()
419 php_stream_from_zval_no_verify(stm, parameter); in odbc_stmt_param_hook()
458 convert_to_string(parameter); in odbc_stmt_param_hook()
460 P->len = Z_STRLEN_P(parameter); in odbc_stmt_param_hook()
461 memcpy(P->outbuf, Z_STRVAL_P(parameter), P->len); in odbc_stmt_param_hook()
463 P->len = SQL_LEN_DATA_AT_EXEC(Z_STRLEN_P(parameter)); in odbc_stmt_param_hook()
466 …} else if (Z_TYPE_P(parameter) == IS_NULL || PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_NULL) { in odbc_stmt_param_hook()
469 convert_to_string(parameter); in odbc_stmt_param_hook()
473 Z_STRVAL_P(parameter), in odbc_stmt_param_hook()
474 Z_STRLEN_P(parameter), in odbc_stmt_param_hook()
478 P->len = Z_STRLEN_P(parameter); in odbc_stmt_param_hook()
479 memcpy(P->outbuf, Z_STRVAL_P(parameter), P->len); in odbc_stmt_param_hook()
487 P->len = SQL_LEN_DATA_AT_EXEC(Z_STRLEN_P(parameter)); in odbc_stmt_param_hook()
496 if (Z_ISREF(param->parameter)) { in odbc_stmt_param_hook()
497 parameter = Z_REFVAL(param->parameter); in odbc_stmt_param_hook()
499 parameter = ¶m->parameter; in odbc_stmt_param_hook()
501 zval_ptr_dtor(parameter); in odbc_stmt_param_hook()
504 ZVAL_STRINGL(parameter, P->outbuf, P->len); in odbc_stmt_param_hook()
505 switch (pdo_odbc_ucs22utf8(stmt, P->is_unicode, parameter)) { in odbc_stmt_param_hook()
514 ZVAL_NULL(parameter); in odbc_stmt_param_hook()