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 = &param->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 SQLPutData(S->stmt, Z_STRVAL_P(parameter), in odbc_stmt_execute()
196 Z_STRLEN_P(parameter)); in odbc_stmt_execute()
215 php_stream_from_zval_no_verify(stm, parameter); in odbc_stmt_execute()
284 zval *parameter; in odbc_stmt_param_hook() local
399 if (!Z_ISREF(param->parameter)) { in odbc_stmt_param_hook()
400 parameter = &param->parameter; in odbc_stmt_param_hook()
402 parameter = Z_REFVAL(param->parameter); in odbc_stmt_param_hook()
406 if (Z_TYPE_P(parameter) == IS_RESOURCE) { in odbc_stmt_param_hook()
410 php_stream_from_zval_no_verify(stm, parameter); in odbc_stmt_param_hook()
449 convert_to_string(parameter); in odbc_stmt_param_hook()
451 P->len = Z_STRLEN_P(parameter); in odbc_stmt_param_hook()
452 memcpy(P->outbuf, Z_STRVAL_P(parameter), P->len); in odbc_stmt_param_hook()
454 P->len = SQL_LEN_DATA_AT_EXEC(Z_STRLEN_P(parameter)); in odbc_stmt_param_hook()
457 …} else if (Z_TYPE_P(parameter) == IS_NULL || PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_NULL) { in odbc_stmt_param_hook()
460 convert_to_string(parameter); in odbc_stmt_param_hook()
464 Z_STRVAL_P(parameter), in odbc_stmt_param_hook()
465 Z_STRLEN_P(parameter), in odbc_stmt_param_hook()
469 P->len = Z_STRLEN_P(parameter); in odbc_stmt_param_hook()
470 memcpy(P->outbuf, Z_STRVAL_P(parameter), P->len); in odbc_stmt_param_hook()
478 P->len = SQL_LEN_DATA_AT_EXEC(Z_STRLEN_P(parameter)); in odbc_stmt_param_hook()
487 if (Z_ISREF(param->parameter)) { in odbc_stmt_param_hook()
488 parameter = Z_REFVAL(param->parameter); in odbc_stmt_param_hook()
490 parameter = &param->parameter; in odbc_stmt_param_hook()
492 zval_ptr_dtor(parameter); in odbc_stmt_param_hook()
495 ZVAL_STRINGL(parameter, P->outbuf, P->len); in odbc_stmt_param_hook()
496 switch (pdo_odbc_ucs22utf8(stmt, P->is_unicode, parameter)) { in odbc_stmt_param_hook()
505 ZVAL_NULL(parameter); in odbc_stmt_param_hook()