/************************* EXTENSION FUNCTIONS *************************/
-/* {{{ proto int OCIDefineByName(int stmt, string name, mixed &var [, int type])
+/* {{{ proto int ocidefinebyname(int stmt, string name, mixed &var [, int type])
Define a PHP variable to an Oracle column by name */
/* if you want to define a LOB/CLOB etc make sure you allocate it via OCINewDescriptor BEFORE defining!!!
*/
}
/* }}} */
-/* {{{ proto int OCIBindByName(int stmt, string name, mixed &var, int maxlength [, int type])
+
+/* {{{ proto int ocibindbyname(int stmt, string name, mixed &var, int maxlength [, int type])
Bind a PHP variable to an Oracle placeholder by name */
/* if you want to bind a LOB/CLOB etc make sure you allocate it via OCINewDescriptor BEFORE binding!!!
*/
}
/* }}} */
+
/* {{{ proto string ocifreedesc(object lob)
Deletes large object description */
RETURN_FALSE;
}
/* }}} */
+
/* {{{ proto string ocisavelob(object lob)
Saves a large object */
}
/* }}} */
+
/* {{{ proto string ocisavelobfile(object lob)
Saves a large object file */
}
/* }}} */
+
/* {{{ proto string ociloadlob(object lob)
Loads a large object */
RETURN_FALSE;
}
/* }}} */
+
/* {{{ proto void ociwritelobtofile(object lob [, string filename] [, int start] [, int length])
Writes a large object into a file */
RETURN_FALSE;
}
/* }}} */
-/* {{{ proto string OCINewDescriptor(int connection [, int type ])
+
+/* {{{ proto string ocinewdescriptor(int connection [, int type])
Initialize a new empty descriptor LOB/FILE (LOB is default) */
PHP_FUNCTION(ocinewdescriptor)
}
/* }}} */
-/* {{{ proto string OCIRollback(int conn)
+
+/* {{{ proto string ocirollback(int conn)
Rollback the current context */
PHP_FUNCTION(ocirollback)
}
/* }}} */
-/* {{{ proto string OCICommit(int conn)
+
+/* {{{ proto string ocicommit(int conn)
Commit the current context */
PHP_FUNCTION(ocicommit)
}
/* }}} */
-/* {{{ proto string OCIColumnName(int stmt, int col)
+
+/* {{{ proto string ocicolumnname(int stmt, int col)
Tell the name of a column */
PHP_FUNCTION(ocicolumnname)
}
/* }}} */
-/* {{{ proto int OCIColumnSize(int stmt, int col)
+
+/* {{{ proto int ocicolumnsize(int stmt, int col)
Tell the maximum data size of a column */
PHP_FUNCTION(ocicolumnsize)
}
/* }}} */
-/* {{{ proto int OCIColumnScale(int stmt, int col)
+
+/* {{{ proto int ocicolumnscale(int stmt, int col)
Tell the scale of a column */
PHP_FUNCTION(ocicolumnscale)
}
/* }}} */
-/* {{{ proto int OCIColumnPrecision(int stmt, int col)
+
+/* {{{ proto int ocicolumnprecision(int stmt, int col)
Tell the precision of a column */
PHP_FUNCTION(ocicolumnprecision)
}
/* }}} */
-/* {{{ proto mixed OCIColumnType(int stmt, int col)
+
+/* {{{ proto mixed ocicolumntype(int stmt, int col)
Tell the data type of a column */
PHP_FUNCTION(ocicolumntype)
}
/* }}} */
-/* {{{ proto mixed OCIColumnTypeRaw(int stmt, int col)
+
+/* {{{ proto mixed ocicolumntyperaw(int stmt, int col)
Tell the raw oracle data type of a column */
PHP_FUNCTION(ocicolumntyperaw)
}
/* }}} */
-/* {{{ proto int OCIColumnIsNULL(int stmt, int col)
+
+/* {{{ proto int ocicolumnisnull(int stmt, int col)
Tell whether a column is NULL */
PHP_FUNCTION(ocicolumnisnull)
}
/* }}} */
-/* {{{ proto void OCIDebug(int onoff)
+
+/* {{{ proto void ocidebug(int onoff)
Toggle internal debugging output for the OCI extension */
/* Disables or enables the internal debug output.
/* }}} */
-/* {{{ proto int OCIExecute(int stmt [, int mode])
+
+/* {{{ proto int ociexecute(int stmt [, int mode])
Execute a parsed statement */
PHP_FUNCTION(ociexecute)
}
/* }}} */
-/* {{{ proto int OCICancel(int stmt)
+
+/* {{{ proto int ocicancel(int stmt)
Prepare a new row of data for reading */
PHP_FUNCTION(ocicancel)
}
/* }}} */
-/* {{{ proto int OCIFetch(int stmt)
+
+/* {{{ proto int ocifetch(int stmt)
Prepare a new row of data for reading */
PHP_FUNCTION(ocifetch)
}
/* }}} */
-/* {{{ proto int OCIFetchInto(int stmt, array &output [, int mode])
+
+/* {{{ proto int ocifetchinto(int stmt, array &output [, int mode])
Fetch a row of result data into an array */
PHP_FUNCTION(ocifetchinto)
}
/* }}} */
-/* {{{ proto int OCIFetchStatement(int stmt, array &output)
+
+/* {{{ proto int ocifetchstatement(int stmt, array &output)
Fetch all rows of result data into an array */
PHP_FUNCTION(ocifetchstatement)
}
/* }}} */
-/* {{{ proto int OCIFreeStatement(int stmt)
+
+/* {{{ proto int ocifreestatement(int stmt)
Free all resources associated with a statement */
PHP_FUNCTION(ocifreestatement)
}
/* }}} */
-/* {{{ proto int OCILogoff(int conn)
+
+/* {{{ proto int ocilogoff(int conn)
Disconnect from database */
PHP_FUNCTION(ocilogoff)
}
/* }}} */
-/* {{{ proto int OCINLogon(string user, string pass [, string db])
+
+/* {{{ proto int ocinlogon(string user, string pass [, string db])
Connect to an Oracle database and log on. returns a new session */
/* Connects to an Oracle 8 database and logs on. If the
}
/* }}} */
-/* {{{ proto int OCILogon(string user, string pass[, string db])
- Connect to an Oracle database and log on. returns a new session.
+
+/* {{{ proto int ocilogon(string user, string pass [, string db])
+ Connect to an Oracle database and log on. Returns a new session.
*/
/* Connects to an Oracle 8 database and logs on. If the
}
/* }}} */
-/* {{{ proto int OCIPLogon(string user, string pass [, string db])
+
+/* {{{ proto int ociplogon(string user, string pass [, string db])
Connect to an Oracle database using a persistent connection and log on. Returns a new session. */
/* Connects to an Oracle 8 database and logs on. If the
}
/* }}} */
-/* {{{ proto int OCIError([int stmt|conn|global])
+
+/* {{{ proto int ocierror([int stmt|conn|global])
Return the last error of stmt|conn|global. If no error happened returns false. */
PHP_FUNCTION(ocierror)
}
/* }}} */
-/* {{{ proto int OCINumCols(int stmt)
+
+/* {{{ proto int ocinumcols(int stmt)
Return the number of result columns in a statement */
PHP_FUNCTION(ocinumcols)
}
/* }}} */
-/* {{{ proto int OCIParse(int conn, string query)
+
+/* {{{ proto int ociparse(int conn, string query)
Parse a query and return a statement */
PHP_FUNCTION(ociparse)
}
/* }}} */
-/* {{{ proto int OCIParse(int conn, string query)
- Parse a query and return a statement */
+
+/* {{{ proto int ocisetprefetch(int conn, string query)
+ Set a prefetch query??? */
PHP_FUNCTION(ocisetprefetch)
{
}
/* }}} */
-/* {{{ proto int OCINewCursor(int conn)
+
+/* {{{ proto int ocinewcursor(int conn)
Return a new cursor (Statement-Handle) - use this to bind ref-cursors! */
PHP_FUNCTION(ocinewcursor)
}
/* }}} */
-/* {{{ proto string OCIResult(int stmt, mixed column)
+
+/* {{{ proto string ociresult(int stmt, mixed column)
Return a single column of result data */
PHP_FUNCTION(ociresult)
}
/* }}} */
-/* {{{ proto string OCIServerVersion(int conn)
+
+/* {{{ proto string ociserverversion(int conn)
Return a string containing server version information */
PHP_FUNCTION(ociserverversion)
}
/* }}} */
-/* {{{ proto int OCIStatementType(int stmt)
+
+/* {{{ proto int ocistatementtype(int stmt)
Return the query type of an OCI statement */
/* XXX it would be better with a general interface to OCIAttrGet() */
}
}
+/* {{{ proto int ocirowcount(int stmt)
+ Return the row count of an OCI statement */
+
PHP_FUNCTION(ocirowcount)
{
zval **stmt;