andrey Thu Jun 12 07:34:31 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/interbase interbase.c
Log:
proto fixes
Index: php4/ext/interbase/interbase.c
diff -u php4/ext/interbase/interbase.c:1.91.2.7 php4/ext/interbase/interbase.c:1.91.2.8
--- php4/ext/interbase/interbase.c:1.91.2.7 Mon Jun 2 08:59:20 2003
+++ php4/ext/interbase/interbase.c Thu Jun 12 07:34:31 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interbase.c,v 1.91.2.7 2003/06/02 12:59:20 daniela Exp $ */
+/* $Id: interbase.c,v 1.91.2.8 2003/06/12 11:34:31 andrey Exp $ */
/* TODO: Arrays, roles?
@@ -300,8 +300,8 @@
/* destructors ---------------------- */
-/* {{{ _php_ibase_free_xsqlda() */
-/* not actual destructor ... */
+/* {{{ _php_ibase_free_xsqlda() (not actual destructor)
+ */
static void _php_ibase_free_xsqlda(XSQLDA *sqlda)
{
int i;
@@ -354,7 +354,8 @@
_php_ibase_commit_link(link);
}
-/* {{{ _php_ibase_close_link() */
+/* {{{ _php_ibase_close_link()
+ */
static void _php_ibase_close_link(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
ibase_db_link *link = (ibase_db_link *)rsrc->ptr;
@@ -367,7 +368,8 @@
}
/* }}} */
-/* {{{ _php_ibase_close_plink() */
+/* {{{ _php_ibase_close_plink()
+ */
static void _php_ibase_close_plink(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
ibase_db_link *link = (ibase_db_link *)rsrc->ptr;
@@ -381,7 +383,8 @@
}
/* }}} */
-/* {{{ _php_ibase_free_result() */
+/* {{{ _php_ibase_free_result()
+ */
static void _php_ibase_free_result(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
ibase_result *ib_result = (ibase_result *)rsrc->ptr;
@@ -619,7 +622,7 @@
php_info_print_table_start();
php_info_print_table_row(2, "Interbase Support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.91.2.7 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.91.2.8 $");
#ifdef COMPILE_DL_INTERBASE
php_info_print_table_row(2, "Dynamic Module", "yes");
#endif
@@ -906,7 +909,7 @@
}
/* }}} */
-/* {{{ proto int ibase_connect(string database [, string username] [, string
password] [, string charset] [, int buffers] [, int dialect] [, string role])
+/* {{{ proto resource ibase_connect(string database [, string username [, string
password [, string charset [, int buffers [, int dialect [, string role]]]]]])
Open a connection to an InterBase database */
PHP_FUNCTION(ibase_connect)
{
@@ -914,7 +917,7 @@
}
/* }}} */
-/* {{{ proto int ibase_pconnect(string database [, string username] [, string
password] [, string charset] [, int buffers] [, int dialect] [, string role])
+/* {{{ proto resource ibase_pconnect(string database [, string username [, string
password [, string charset [, int buffers [, int dialect [, string role]]]]]])
Open a persistent connection to an InterBase database */
PHP_FUNCTION(ibase_pconnect)
{
@@ -922,7 +925,7 @@
}
/* }}} */
-/* {{{ proto int ibase_close([int link_identifier])
+/* {{{ proto bool ibase_close([resource link_identifier])
Close an InterBase connection */
PHP_FUNCTION(ibase_close)
{
@@ -1492,7 +1495,7 @@
}
/* }}} */
-/* {{{ proto int ibase_trans([int trans_args [, int link_identifier]])
+/* {{{ proto resource ibase_trans([int trans_args [, resource link_identifier]])
Start transaction */
PHP_FUNCTION(ibase_trans)
{
@@ -1662,7 +1665,7 @@
}
/* }}} */
-/* {{{ proto int ibase_commit([int link_identifier, ] int trans_number)
+/* {{{ proto bool ibase_commit([resource link_identifier [, int trans_number]])
Commit transaction */
PHP_FUNCTION(ibase_commit)
{
@@ -1670,7 +1673,7 @@
}
/* }}} */
-/* {{{ proto int ibase_rollback([int link_identifier, ] int trans_number)
+/* {{{ proto bool ibase_rollback([resource link_identifier [, int trans_number]])
Roolback transaction */
PHP_FUNCTION(ibase_rollback)
{
@@ -1678,7 +1681,7 @@
}
/* }}} */
-/* {{{ proto int ibase_query([int link_identifier, ] string query [, int bind_args])
+/* {{{ proto resource ibase_query([resource link_identifier [, string query [, int
bind_args]]])
Execute a query */
PHP_FUNCTION(ibase_query)
{
@@ -2187,7 +2190,7 @@
}
/* }}} */
-/* {{{ proto array ibase_fetch_row(int result [, int blob_flag])
+/* {{{ proto array ibase_fetch_row(resource result [, int blob_flag])
Fetch a row from the results of a query */
PHP_FUNCTION(ibase_fetch_row)
{
@@ -2195,7 +2198,7 @@
}
/* }}} */
-/* {{{ proto array ibase_fetch_assoc(int result [, int blob_flag])
+/* {{{ proto array ibase_fetch_assoc(resource result [, int blob_flag])
Fetch a row from the results of a query */
PHP_FUNCTION(ibase_fetch_assoc)
{
@@ -2203,7 +2206,7 @@
}
/* }}} */
-/* {{{ proto object ibase_fetch_object(int result [, int blob_flag])
+/* {{{ proto object ibase_fetch_object(resource result [, int blob_flag])
Fetch a object from the results of a query */
PHP_FUNCTION(ibase_fetch_object)
{
@@ -2214,7 +2217,7 @@
}
/* }}} */
-/* {{{ proto int ibase_free_result(int result)
+/* {{{ proto bool ibase_free_result(resource result)
Free the memory used by a result */
PHP_FUNCTION(ibase_free_result)
{
@@ -2233,7 +2236,7 @@
}
/* }}} */
-/* {{{ proto int ibase_prepare([int link_identifier, ] string query)
+/* {{{ proto resource ibase_prepare([resource link_identifier, ] string query)
Prepare a query for later execution */
PHP_FUNCTION(ibase_prepare)
{
@@ -2284,7 +2287,7 @@
}
/* }}} */
-/* {{{ proto int ibase_execute(int query [, int bind_args [, int ...]])
+/* {{{ proto resource ibase_execute(resource query [, int bind_args [, int ...]])
Execute a previously prepared query */
PHP_FUNCTION(ibase_execute)
{
@@ -2336,7 +2339,7 @@
}
/* }}} */
-/* {{{ proto int ibase_free_query(int query)
+/* {{{ proto bool ibase_free_query(resource query)
Free memory used by a query */
PHP_FUNCTION(ibase_free_query)
{
@@ -2410,7 +2413,7 @@
/* }}} */
#endif
-/* {{{ proto int ibase_num_fields(int result)
+/* {{{ proto int ibase_num_fields(resource result)
Get the number of fields in result */
PHP_FUNCTION(ibase_num_fields)
{
@@ -2434,7 +2437,7 @@
}
/* }}} */
-/* {{{ proto array ibase_field_info(int result, int field_number)
+/* {{{ proto array ibase_field_info(resource result, int field_number)
Get information about a field */
PHP_FUNCTION(ibase_field_info)
{
@@ -2570,7 +2573,7 @@
}
/* }}} */
-/* {{{ proto int ibase_blob_create([int link_identifier])
+/* {{{ proto int ibase_blob_create([resource link_identifier])
Create blob for adding data */
PHP_FUNCTION(ibase_blob_create)
{
@@ -2653,7 +2656,7 @@
}
/* }}} */
-/* {{{ proto int ibase_blob_add(int blob_id, string data)
+/* {{{ proto bool ibase_blob_add(int blob_id, string data)
Add data into created blob */
PHP_FUNCTION(ibase_blob_add)
{
@@ -2766,7 +2769,7 @@
}
/* }}} */
-/* {{{ proto int ibase_blob_close(int blob_id)
+/* {{{ proto bool ibase_blob_close(int blob_id)
Close blob */
PHP_FUNCTION(ibase_blob_close)
{
@@ -2774,7 +2777,7 @@
}
/* }}} */
-/* {{{ proto int ibase_blob_cancel(int blob_id)
+/* {{{ proto bool ibase_blob_cancel(int blob_id)
Cancel creating blob */
PHP_FUNCTION(ibase_blob_cancel)
{
@@ -2855,7 +2858,7 @@
}
/* }}} */
-/* {{{ proto int ibase_blob_echo(string blob_id_str)
+/* {{{ proto bool ibase_blob_echo(string blob_id_str)
Output blob contents to browser */
PHP_FUNCTION(ibase_blob_echo)
{
@@ -2907,7 +2910,7 @@
*/
/*to handle reading and writing to windows sockets*/
-/* {{{ proto string ibase_blob_import([link_identifier, ] int file_id)
+/* {{{ proto string ibase_blob_import([resource link_identifier, ] int file_id)
Create blob, copy file in it, and close it */
PHP_FUNCTION(ibase_blob_import)
@@ -3136,7 +3139,7 @@
}
/* }}} */
-/* {{{ proto int ibase_add_user(string server, string dba_user_name, string
dba_password, string user_name, string password [, string first_name] [, string
middle_name] [, string last_name])
+/* {{{ proto bool ibase_add_user(string server, string dba_user_name, string
dba_password, string user_name, string password [, string first_name [, string
middle_name [, string last_name]]])
Add an user to security database (only for IB6 or later) */
PHP_FUNCTION(ibase_add_user)
{
@@ -3144,7 +3147,7 @@
}
/* }}} */
-/* {{{ proto int ibase_modify_user(string server, string dba_user_name, string
dba_password, string user_name, string password [, string first_name] [, string
middle_name] [, string last_name])
+/* {{{ proto bool ibase_modify_user(string server, string dba_user_name, string
dba_password, string user_name, string password [, string first_name [, string
middle_name [, string last_name]]])
Modify an user in security database (only for IB6 or later) */
PHP_FUNCTION(ibase_modify_user)
{
@@ -3152,7 +3155,7 @@
}
/* }}} */
-/* {{{ proto int ibase_delete_user(string server, string dba_user_name, string
dba_password, string username)
+/* {{{ proto bool ibase_delete_user(string server, string dba_user_name, string
dba_password, string username)
Delete an user from security database (only for IB6 or later) */
PHP_FUNCTION(ibase_delete_user)
{
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php