php_ifx_set_default_link(return_value->value.lval TSRMLS_CC);
}
-/* {{{ proto int ifx_connect([string database [, string userid [, string password]]])
+/* {{{ proto resource ifx_connect([string database [, string userid [, string password]]])
Connects to database using userid/password, returns connection id */
PHP_FUNCTION(ifx_connect)
{
}
/* }}} */
-/* {{{ proto int ifx_pconnect([string database [, string userid [, string password]]])
+/* {{{ proto resource ifx_pconnect([string database [, string userid [, string password]]])
Connects to database using userid/password, returns connection id */
PHP_FUNCTION(ifx_pconnect)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_close([int connid])
+/* {{{ proto bool ifx_close([resource connid])
Close informix connection */
PHP_FUNCTION(ifx_close)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_query(string query, int connid [, int cursortype] [, array idarray])
+/* {{{ proto resource ifx_query(string query, resource connid [, int cursortype] [, array idarray])
Perform a query on a given connection */
PHP_FUNCTION(ifx_query)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_prepare(string query, int connid [, int cursortype] [, array idarray])
+/* {{{ proto resource ifx_prepare(string query, resource connid [, int cursortype] [, array idarray])
Prepare a query on a given connection */
PHP_FUNCTION(ifx_prepare)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_do(int resultid)
+/* {{{ proto bool ifx_do(resource resultid)
Executes a previously prepared query or opens a cursor for it */
PHP_FUNCTION(ifx_do)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto string ifx_error([int connection_id])
+/* {{{ proto string ifx_error([resource connection_id])
Returns the Informix error codes (SQLSTATE & SQLCODE) */
PHP_FUNCTION(ifx_error)
{
** ---------------------------------------------------------------
*/
-/* {{{ proto int ifx_affected_rows(int resultid)
+/* {{{ proto int ifx_affected_rows(resource resultid)
Returns the number of rows affected by query identified by resultid */
PHP_FUNCTION(ifx_affected_rows)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto array ifx_fetch_row(int resultid [, mixed position])
+/* {{{ proto array ifx_fetch_row(resource resultid [, mixed position])
Fetches the next row or <position> row if using a scroll cursor */
PHP_FUNCTION(ifx_fetch_row)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_htmltbl_result(int resultid [, string htmltableoptions])
+/* {{{ proto int ifx_htmltbl_result(resource resultid [, string htmltableoptions])
Formats all rows of the resultid query into a html table */
PHP_FUNCTION(ifx_htmltbl_result)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto array ifx_fieldtypes(int resultid)
+/* {{{ proto array ifx_fieldtypes(resource resultid)
Returns an associative array with fieldnames as key for query <resultid> */
PHP_FUNCTION(ifx_fieldtypes)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto array ifx_fieldproperties(int resultid)
+/* {{{ proto array ifx_fieldproperties(resource resultid)
Returns an associative for query <resultid> array with fieldnames as key */
PHP_FUNCTION(ifx_fieldproperties)
{
** ---------------------------------------------------------------
*/
-/* {{{ proto int ifx_num_rows(int resultid)
+/* {{{ proto int ifx_num_rows(resource resultid)
Returns the number of rows already fetched for query identified by resultid */
PHP_FUNCTION(ifx_num_rows)
{
** ---------------------------------------------------------------
*/
-/* {{{ proto int ifx_getsqlca(int resultid)
+/* {{{ proto array ifx_getsqlca(resource resultid)
Returns the sqlerrd[] fields of the sqlca struct for query resultid */
PHP_FUNCTION(ifx_getsqlca)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_num_fields(int resultid)
+/* {{{ proto int ifx_num_fields(resource resultid)
Returns the number of columns in query resultid */
PHP_FUNCTION(ifx_num_fields)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_free_result(int resultid)
+/* {{{ proto bool ifx_free_result(resource resultid)
Releases resources for query associated with resultid */
PHP_FUNCTION(ifx_free_result)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto void ifx_blobinfile_mode(int mode)
+/* {{{ proto bool ifx_blobinfile_mode(int mode)
Sets the default blob-mode for all select-queries */
PHP_FUNCTION(ifx_blobinfile_mode)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto void ifx_textasvarchar(int mode)
+/* {{{ proto bool ifx_textasvarchar(int mode)
Sets the default text-mode for all select-queries */
PHP_FUNCTION(ifx_textasvarchar)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto void ifx_byteasvarchar(int mode)
+/* {{{ proto bool ifx_byteasvarchar(int mode)
Sets the default byte-mode for all select-queries */
PHP_FUNCTION(ifx_byteasvarchar)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto void ifx_nullformat(int mode)
+/* {{{ proto bool ifx_nullformat(int mode)
Sets the default return value of a NULL-value on a fetch-row */
PHP_FUNCTION(ifx_nullformat)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_free_char(int bid)
+/* {{{ proto bool ifx_free_char(int bid)
Deletes the char-object */
PHP_FUNCTION(ifx_free_char)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_update_char(int bid, string content)
+/* {{{ proto bool ifx_update_char(int bid, string content)
Updates the content of the char-object */
PHP_FUNCTION(ifx_update_char)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifxus_free_slob(int bid)
+/* {{{ proto bool ifxus_free_slob(int bid)
Deletes the slob-object */
PHP_FUNCTION(ifxus_free_slob)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifxus_close_slob(int bid)
+/* {{{ proto bool ifxus_close_slob(int bid)
Deletes the slob-object */
PHP_FUNCTION(ifxus_close_slob)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifxus_open_slob(long bid, int mode)
+/* {{{ proto int ifxus_open_slob(int bid, int mode)
Opens an slob-object */
PHP_FUNCTION(ifxus_open_slob)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifxus_tell_slob(long bid)
+/* {{{ proto int ifxus_tell_slob(int bid)
Returns the current file or seek position of an open slob-object */
PHP_FUNCTION(ifxus_tell_slob)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifxus_seek_slob(long bid, int mode, long offset)
+/* {{{ proto int ifxus_seek_slob(int bid, int mode, long offset)
Sets the current file or seek position of an open slob-object */
PHP_FUNCTION(ifxus_seek_slob)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifxus_read_slob(long bid, long nbytes)
+/* {{{ proto string ifxus_read_slob(int bid, int nbytes)
Reads nbytes of the slob-object */
PHP_FUNCTION(ifxus_read_slob)
{
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifxus_write_slob(long bid, string content)
+/* {{{ proto int ifxus_write_slob(int bid, string content)
Writes a string into the slob-object */
PHP_FUNCTION(ifxus_write_slob)
{