}
/* }}} */
+/* {{{ void _close_odbc_pcon
+ */
static void _close_odbc_pconn(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
odbc_connection *conn = (odbc_connection *)rsrc->ptr;
ODBCG(num_links)--;
ODBCG(num_persistent)--;
}
+/* }}} */
+/* {{{ PHP_INI_DISP(display_link_nums)
+ */
static PHP_INI_DISP(display_link_nums)
{
char *value;
}
}
}
+/* }}} */
+/* {{{ PHP_INI_DISP(display_defPW)
+ */
static PHP_INI_DISP(display_defPW)
{
char *value;
PUTS("<i>no value</i>");
}
}
+/* }}} */
+/* {{{ PHP_INI_DISP(display_binmode)
+ */
static PHP_INI_DISP(display_binmode)
{
char *value;
}
}
}
+/* }}} */
+/* {{{ PHP_INI_DISP(display_lrl)
+ */
static PHP_INI_DISP(display_lrl)
{
char *value;
}
}
}
+/* }}} */
+/* {{{ PHP_INI_BEGIN
+ */
PHP_INI_BEGIN()
STD_PHP_INI_BOOLEAN("odbc.allow_persistent", "1", PHP_INI_SYSTEM, OnUpdateInt,
allow_persistent, php_odbc_globals, odbc_globals)
STD_PHP_INI_BOOLEAN("odbc.check_persistent", "1", PHP_INI_SYSTEM, OnUpdateInt,
check_persistent, php_odbc_globals, odbc_globals)
PHP_INI_END()
+/* }}} */
#ifdef ZTS
static void php_odbc_init_globals(php_odbc_globals *odbc_globals_p TSRMLS_DC)
}
#endif
+/* {{{ PHP_MINIT_FUNCTION */
PHP_MINIT_FUNCTION(odbc)
{
#ifdef SQLANY_BUG
return SUCCESS;
}
+/* }}} */
-
+/* {{{ PHP_RINIT_FUNCTION */
PHP_RINIT_FUNCTION(odbc)
{
ODBCG(defConn) = -1;
memset(ODBCG(lasterrormsg), '\0', SQL_MAX_MESSAGE_LENGTH);
return SUCCESS;
}
+/* }}} */
+/* {{{ PHP_RSHUTDOWN_FUNCTION */
PHP_RSHUTDOWN_FUNCTION(odbc)
{
return SUCCESS;
}
+/* }}} */
+/* {{{ PHP_MSHUTDOWN_FUNCTION */
PHP_MSHUTDOWN_FUNCTION(odbc)
{
UNREGISTER_INI_ENTRIES();
return SUCCESS;
}
+/* }}} */
+/* {{{ PHP_MINFO_FUNCTION */
PHP_MINFO_FUNCTION(odbc)
{
char buf[32];
DISPLAY_INI_ENTRIES();
}
+/* }}} */
+/* {{{ odbc_sql_error */
void odbc_sql_error(ODBC_SQL_ERROR_PARAMS)
{
char state[6];
}
*/
}
+/* }}} */
+/* {{{ php_odbc_fetch_attribs */
void php_odbc_fetch_attribs(INTERNAL_FUNCTION_PARAMETERS, int mode)
{
odbc_result *result;
}
RETURN_TRUE;
}
+/* }}} */
-
+/* {{{ odbc_bindcols */
int odbc_bindcols(odbc_result *result TSRMLS_DC)
{
RETCODE rc;
}
return 1;
}
+/* }}} */
+/* {{{ odbc_transact */
void odbc_transact(INTERNAL_FUNCTION_PARAMETERS, int type)
{
odbc_connection *conn;
RETURN_TRUE;
}
+/* }}} */
+/* {{{ _close_pconn_with_id */
static int _close_pconn_with_id(list_entry *le, int *id TSRMLS_DC)
{
if(Z_TYPE_P(le) == le_pconn && (((odbc_connection *)(le->ptr))->id == *id)){
return 0;
}
}
+/* }}} */
+/* {{{ odbc_column_lengths */
void odbc_column_lengths(INTERNAL_FUNCTION_PARAMETERS, int type)
{
odbc_result *result;
RETURN_LONG(len);
}
+/* }}} */
/* Main User Functions */
}
/* }}} */
-
/* {{{ proto int odbc_prepare(int connection_id, string query)
Prepares a statement for execution */
PHP_FUNCTION(odbc_prepare)
/*
* Execute prepared SQL statement. Supports only input parameters.
*/
+
/* {{{ proto int odbc_execute(int result_id [, array parameters_array])
Execute a prepared statement */
PHP_FUNCTION(odbc_execute)
#define ODBC_NUM 1
#define ODBC_OBJECT 2
+/* {{{ php_odbc_fetch_hash */
static void php_odbc_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
{
int i;
}
if (buf) efree(buf);
}
+/* }}} */
/* {{{ proto object odbc_fetch_object(int result [, int rownumber])
}
/* }}} */
+/* {{{ solid_fetch_prev */
#if defined(HAVE_SOLID) || defined(HAVE_SOLID_30) || defined(HAVE_SOLID_35)
PHP_FUNCTION(solid_fetch_prev)
{
RETURN_TRUE;
}
#endif
+/* }}} */
/* {{{ proto int odbc_fetch_row(int result_id [, int row_number])
Fetch a row */
}
/* }}} */
+/* {{{ odbc_sqlconnect */
int odbc_sqlconnect(odbc_connection **conn, char *db, char *uid, char *pwd, int cur_opt, int persistent TSRMLS_DC)
{
RETCODE rc;
/* (*conn)->open = 1;*/
return TRUE;
}
+/* }}} */
+
/* Persistent connections: two list-types le_pconn, le_conn and a plist
* where hashed connection info is stored together with index pointer to
* the actual link of type le_pconn in the list. Only persistent
* "globals" in this module should actualy be per-connection variables. I
* simply fixed things to get them working for now. Shane
*/
+/* {{{ odbc_do_connect */
void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
{
char *db = NULL;
}
efree(hashed_details);
}
+/* }}} */
/* {{{ proto void odbc_close(int connection_id)
Close an ODBC connection */
}
/* }}} */
+/* {{{ php_odbc_lasterror */
static void php_odbc_lasterror(INTERNAL_FUNCTION_PARAMETERS, int mode)
{
odbc_connection *conn;
}
RETVAL_STRING(ptr, 0);
}
+/* }}} */
/* {{{ proto string odbc_error([int connection_id])
Get the last error code */