Lines Matching refs:len
216 unsigned long *len, int *caller_frees TSRMLS_DC) in pdo_dblib_stmt_get_col() argument
228 *len = dbdatlen(H->link, colno+1); in pdo_dblib_stmt_get_col()
231 if (*len == 0 && *ptr == NULL) { in pdo_dblib_stmt_get_col()
243 tmp_ptr = emalloc(*len + 1); in pdo_dblib_stmt_get_col()
244 memcpy(tmp_ptr, *ptr, *len); in pdo_dblib_stmt_get_col()
245 tmp_ptr[*len] = '\0'; in pdo_dblib_stmt_get_col()
252 dbconvert(NULL, coltype, *ptr, *len, SQLFLT8, (LPBYTE)&money_value, 8); in pdo_dblib_stmt_get_col()
253 *len = spprintf(&tmp_ptr, 0, "%.4f", money_value); in pdo_dblib_stmt_get_col()
258 *len = 36+1; in pdo_dblib_stmt_get_col()
259 tmp_ptr = emalloc(*len + 1); in pdo_dblib_stmt_get_col()
262 *len = dbconvert(NULL, SQLUNIQUE, *ptr, *len, SQLCHAR, tmp_ptr, *len); in pdo_dblib_stmt_get_col()
263 php_strtoupper(tmp_ptr, *len); in pdo_dblib_stmt_get_col()
269 tmp_len = 32 + (2 * (*len)); /* FIXME: We allocate more than we need here */ in pdo_dblib_stmt_get_col()
271 *len = dbconvert(NULL, coltype, *ptr, *len, SQLCHAR, tmp_ptr, -1); in pdo_dblib_stmt_get_col()
274 *len = 0; /* FIXME: Silently fails and returns null on conversion errors */ in pdo_dblib_stmt_get_col()