[PHP4BETA] CVS update: php4/ext/oci8

From: Date: Fri, 21 May 1999 10:06:08 +0000
Subject: [PHP4BETA] CVS update: php4/ext/oci8
Groups: php.version4 
Request: Send a blank email to php-version4+get-953@lists.php.net to get a copy of this message
Date: Friday May 21, 1999 @ 6:06 Author: sas Update of /repository/php4/ext/oci8 In directory php:/tmp/cvs-serv14196/ext/oci8 Modified Files: oci8.c Log Message: - run ext sources through conv_proto - add necessary phpext_*_ptr Index: php4/ext/oci8/oci8.c diff -u php4/ext/oci8/oci8.c:1.2 php4/ext/oci8/oci8.c:1.3 --- php4/ext/oci8/oci8.c:1.2 Wed May 12 10:28:01 1999 +++ php4/ext/oci8/oci8.c Fri May 21 06:06:07 1999 @@ -33,7 +33,7 @@ #define OCI8_USE_EMALLOC 0 /* set this to 1 if you want to use the php memory manager! */ -/* $Id: oci8.c,v 1.2 1999/05/12 14:28:01 thies Exp $ */ +/* $Id: oci8.c,v 1.3 1999/05/21 10:06:07 sas Exp $ */ /* TODO list: * @@ -208,37 +208,37 @@ /* }}} */ /* {{{ extension function prototypes */ -void php3_oci8_bindbyname(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_definebyname(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_columnisnull(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_columnname(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_columnsize(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_columntype(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_execute(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_fetch(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_cancel(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_fetchinto(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_fetchstatement(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_freestatement(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_internaldebug(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_logout(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_logon(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_nlogon(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_plogon(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_error(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_freedesc(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_savedesc(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_loaddesc(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_commit(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_rollback(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_newdescriptor(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_numcols(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_parse(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_newcursor(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_result(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_serverversion(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_statementtype(INTERNAL_FUNCTION_PARAMETERS); -void php3_oci8_rowcount(INTERNAL_FUNCTION_PARAMETERS); +PHP_FUNCTION(oci8_bindbyname); +PHP_FUNCTION(oci8_definebyname); +PHP_FUNCTION(oci8_columnisnull); +PHP_FUNCTION(oci8_columnname); +PHP_FUNCTION(oci8_columnsize); +PHP_FUNCTION(oci8_columntype); +PHP_FUNCTION(oci8_execute); +PHP_FUNCTION(oci8_fetch); +PHP_FUNCTION(oci8_cancel); +PHP_FUNCTION(oci8_fetchinto); +PHP_FUNCTION(oci8_fetchstatement); +PHP_FUNCTION(oci8_freestatement); +PHP_FUNCTION(oci8_internaldebug); +PHP_FUNCTION(oci8_logout); +PHP_FUNCTION(oci8_logon); +PHP_FUNCTION(oci8_nlogon); +PHP_FUNCTION(oci8_plogon); +PHP_FUNCTION(oci8_error); +PHP_FUNCTION(oci8_freedesc); +PHP_FUNCTION(oci8_savedesc); +PHP_FUNCTION(oci8_loaddesc); +PHP_FUNCTION(oci8_commit); +PHP_FUNCTION(oci8_rollback); +PHP_FUNCTION(oci8_newdescriptor); +PHP_FUNCTION(oci8_numcols); +PHP_FUNCTION(oci8_parse); +PHP_FUNCTION(oci8_newcursor); +PHP_FUNCTION(oci8_result); +PHP_FUNCTION(oci8_serverversion); +PHP_FUNCTION(oci8_statementtype); +PHP_FUNCTION(oci8_rowcount); /* }}} */ /* {{{ extension definition structures */ @@ -2291,7 +2291,7 @@ if you want to define a LOB/CLOB etc make sure you allocate it via OCINewDescriptor BEFORE defining!!! */ -void php3_oci8_definebyname(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_definebyname) { pval *stmt, *name, *var, *type; oci8_statement *statement; @@ -2354,7 +2354,7 @@ if you want to bind a LOB/CLOB etc make sure you allocate it via OCINewDescriptor BEFORE binding!!! */ -void php3_oci8_bindbyname(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_bindbyname) { pval *stmt, *name, *var, *maxlen, *tmp,*type; oci8_statement *statement; @@ -2492,7 +2492,7 @@ /* {{{ proto string ocifreedesc(object lob) */ -void php3_oci8_freedesc(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_freedesc) { pval *id, *conn, *desc; oci8_connection *connection; @@ -2528,7 +2528,7 @@ /* {{{ proto string ocisavedesc(object lob) */ -void php3_oci8_savedesc(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_savedesc) { pval *id, *tmp, *conn, *arg; OCILobLocator *mylob; @@ -2608,7 +2608,7 @@ /* {{{ proto string ociloaddesc(object lob) */ -void php3_oci8_loaddesc(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_loaddesc) { pval *id, *tmp, *conn; oci8_connection *connection; @@ -2653,7 +2653,7 @@ initialize a new empty descriptor LOB/FILE (LOB is default) */ -void php3_oci8_newdescriptor(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_newdescriptor) { pval *conn, *type; oci8_connection *connection; @@ -2729,7 +2729,7 @@ rollback the current context */ -void php3_oci8_rollback(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_rollback) { pval *conn; oci8_connection *connection; @@ -2763,7 +2763,7 @@ commit the current context */ -void php3_oci8_commit(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_commit) { pval *conn; oci8_connection *connection; @@ -2797,7 +2797,7 @@ Tell the name of a column. */ -void php3_oci8_columnname(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_columnname) { pval *stmt, *col; oci8_statement *statement; @@ -2825,7 +2825,7 @@ Tell the maximum data size of a column. */ -void php3_oci8_columnsize(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_columnsize) { pval *stmt, *col; oci8_statement *statement; @@ -2852,7 +2852,7 @@ Tell the data type of a column. */ -void php3_oci8_columntype(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_columntype) { pval *stmt, *col; oci8_statement *statement; @@ -2918,7 +2918,7 @@ Tell whether a column is NULL. */ -void php3_oci8_columnisnull(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_columnisnull) { pval *stmt, *col; oci8_statement *statement; @@ -2952,7 +2952,7 @@ /* Disables or enables the internal debug output. * By default it is disabled. */ -void php3_oci8_internaldebug(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_internaldebug) { pval *arg; OCI8_TLS_VARS; @@ -2970,7 +2970,7 @@ Execute a parsed statement. */ -void php3_oci8_execute(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_execute) { pval *stmt,*mode; oci8_statement *statement; @@ -3004,7 +3004,7 @@ Prepare a new row of data for reading. */ -void php3_oci8_cancel(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_cancel) { pval *stmt; oci8_statement *statement; @@ -3031,7 +3031,7 @@ Prepare a new row of data for reading. */ -void php3_oci8_fetch(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_fetch) { pval *stmt; oci8_statement *statement; @@ -3059,7 +3059,7 @@ Fetch a row of result data into an array. */ -void php3_oci8_fetchinto(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_fetchinto) { pval *stmt, *array, *element, *fmode; oci8_statement *statement; @@ -3158,7 +3158,7 @@ Fetch all rows of result data into an array. */ -void php3_oci8_fetchstatement(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_fetchstatement) { pval *stmt, *array, element, *fmode; oci8_statement *statement; @@ -3225,7 +3225,7 @@ Free all resources associated with a statement. */ -void php3_oci8_freestatement(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_freestatement) { pval *stmt; oci8_statement *statement; @@ -3252,7 +3252,7 @@ /* Logs off and disconnects. */ -void php3_oci8_logout(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_logout) { oci8_connection *connection; pval *arg; @@ -3293,7 +3293,7 @@ * optional third parameter is not specified, PHP uses the environment * variable ORACLE_SID to determine which database to connect to. */ -void php3_oci8_nlogon(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_nlogon) { oci8_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0,1); } @@ -3307,7 +3307,7 @@ * optional third parameter is not specified, PHP uses the environment * variable ORACLE_SID to determine which database to connect to. */ -void php3_oci8_logon(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_logon) { oci8_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0,0); } @@ -3321,7 +3321,7 @@ * optional third parameter is not specified, PHP uses the environment * variable ORACLE_SID to determine which database to connect to. */ -void php3_oci8_plogon(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_plogon) { oci8_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,1,0); } @@ -3331,7 +3331,7 @@ Return the last error of stmt|conn|global. If no error happened returns false. */ -void php3_oci8_error(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_error) { pval *mixed; oci8_statement *statement; @@ -3387,7 +3387,7 @@ Return the number of result columns in a statement. */ -void php3_oci8_numcols(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_numcols) { pval *stmt; oci8_statement *statement; @@ -3409,7 +3409,7 @@ Parse a query and return a statement. */ -void php3_oci8_parse(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_parse) { pval *conn, *query; oci8_connection *connection; @@ -3439,7 +3439,7 @@ */ -void php3_oci8_newcursor(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_newcursor) { pval *conn; oci8_connection *connection; @@ -3467,7 +3467,7 @@ Return a single column of result data. */ -void php3_oci8_result(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_result) { pval *stmt, *col; oci8_statement *statement; @@ -3500,7 +3500,7 @@ Return a string containing server version information. */ -void php3_oci8_serverversion(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_serverversion) { oci8_connection *connection; pval *arg; @@ -3537,7 +3537,7 @@ /* XXX it would be better with a general interface to OCIAttrGet() */ -void php3_oci8_statementtype(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_statementtype) { pval *stmt; oci8_statement *statement; @@ -3598,7 +3598,7 @@ } } -void php3_oci8_rowcount(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(oci8_rowcount) { pval *stmt; oci8_statement *statement; -- PHP 4 Beta

« previous php.version4 (#953) next »