summaryrefslogtreecommitdiff
path: root/ext/msql
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2003-06-16 16:36:51 +0000
committerAndrey Hristov <andrey@php.net>2003-06-16 16:36:51 +0000
commit8934146246aa5c9a189fad3a17339f21b6a2f821 (patch)
tree4ebdb7fd853fe322ed475a9359ed1c2407e32b9b /ext/msql
parent7e663790c7cbb537341349de953c0b33272e6ddf (diff)
downloadphp-git-8934146246aa5c9a189fad3a17339f21b6a2f821.tar.gz
proto fixes
#my head hurts now. no more fixes today ;)
Diffstat (limited to 'ext/msql')
-rw-r--r--ext/msql/php_msql.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/ext/msql/php_msql.c b/ext/msql/php_msql.c
index b113b1bdcc..9ccacaab84 100644
--- a/ext/msql/php_msql.c
+++ b/ext/msql/php_msql.c
@@ -397,7 +397,7 @@ PHP_FUNCTION(msql_pconnect)
}
/* }}} */
-/* {{{ proto int msql_close([int link_identifier])
+/* {{{ proto bool msql_close([resource link_identifier])
Close an mSQL connection */
PHP_FUNCTION(msql_close)
{
@@ -436,7 +436,7 @@ PHP_FUNCTION(msql_close)
}
/* }}} */
-/* {{{ proto int msql_select_db(string database_name [, int link_identifier])
+/* {{{ proto bool msql_select_db(string database_name [, resource link_identifier])
Select an mSQL database */
PHP_FUNCTION(msql_select_db)
{
@@ -475,7 +475,7 @@ PHP_FUNCTION(msql_select_db)
}
/* }}} */
-/* {{{ proto int msql_create_db(string database_name [, int link_identifier])
+/* {{{ proto bool msql_create_db(string database_name [, resource link_identifier])
Create an mSQL database */
PHP_FUNCTION(msql_create_db)
{
@@ -512,7 +512,7 @@ PHP_FUNCTION(msql_create_db)
}
/* }}} */
-/* {{{ proto int msql_drop_db(string database_name [, int link_identifier])
+/* {{{ proto bool msql_drop_db(string database_name [, resource link_identifier])
Drop (delete) an mSQL database */
PHP_FUNCTION(msql_drop_db)
{
@@ -549,7 +549,7 @@ PHP_FUNCTION(msql_drop_db)
}
/* }}} */
-/* {{{ proto int msql_query(string query [, int link_identifier])
+/* {{{ proto resource msql_query(string query [, resource link_identifier])
Send an SQL query to mSQL */
PHP_FUNCTION(msql_query)
{
@@ -586,7 +586,7 @@ PHP_FUNCTION(msql_query)
}
/* }}} */
-/* {{{ proto int msql_db_query(string database_name, string query [, int link_identifier])
+/* {{{ proto resource msql_db_query(string database_name, string query [, resource link_identifier])
Send an SQL query to mSQL */
PHP_FUNCTION(msql_db_query)
{
@@ -628,7 +628,7 @@ PHP_FUNCTION(msql_db_query)
}
/* }}} */
-/* {{{ proto int msql_list_dbs([int link_identifier])
+/* {{{ proto resource msql_list_dbs([resource link_identifier])
List databases available on an mSQL server */
PHP_FUNCTION(msql_list_dbs)
{
@@ -662,7 +662,7 @@ PHP_FUNCTION(msql_list_dbs)
}
/* }}} */
-/* {{{ proto int msql_list_tables(string database_name [, int link_identifier])
+/* {{{ proto resource msql_list_tables(string database_name [, resource link_identifier])
List tables in an mSQL database */
PHP_FUNCTION(msql_list_tables)
{
@@ -703,7 +703,7 @@ PHP_FUNCTION(msql_list_tables)
}
/* }}} */
-/* {{{ proto int msql_list_fields(string database_name, string table_name [, int link_identifier])
+/* {{{ proto resource msql_list_fields(string database_name, string table_name [, resource link_identifier])
List mSQL result fields */
PHP_FUNCTION(msql_list_fields)
{
@@ -745,7 +745,7 @@ PHP_FUNCTION(msql_list_fields)
}
/* }}} */
-/* {{{ proto string msql_error([int link_identifier])
+/* {{{ proto string msql_error(void)
Returns the text of the error message from previous mSQL operation */
PHP_FUNCTION(msql_error)
{
@@ -756,7 +756,7 @@ PHP_FUNCTION(msql_error)
}
/* }}} */
-/* {{{ proto int msql_result(int query, int row [, mixed field])
+/* {{{ proto string msql_result(int query, int row [, mixed field])
Get result data */
PHP_FUNCTION(msql_result)
{
@@ -857,7 +857,7 @@ PHP_FUNCTION(msql_result)
}
/* }}} */
-/* {{{ proto int msql_num_rows(int query)
+/* {{{ proto int msql_num_rows(resource query)
Get number of rows in a result */
PHP_FUNCTION(msql_num_rows)
{
@@ -874,7 +874,7 @@ PHP_FUNCTION(msql_num_rows)
}
/* }}} */
-/* {{{ proto int msql_num_fields(int query)
+/* {{{ proto int msql_num_fields(resource query)
Get number of fields in a result */
PHP_FUNCTION(msql_num_fields)
{
@@ -966,7 +966,7 @@ static void php_msql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
}
/* }}} */
-/* {{{ proto array msql_fetch_row(int query)
+/* {{{ proto array msql_fetch_row(resource query)
Get a result row as an enumerated array */
PHP_FUNCTION(msql_fetch_row)
{
@@ -974,7 +974,7 @@ PHP_FUNCTION(msql_fetch_row)
}
/* }}} */
-/* {{{ proto object msql_fetch_object(int query [, int result_type])
+/* {{{ proto object msql_fetch_object(resource query [, resource result_type])
Fetch a result row as an object */
PHP_FUNCTION(msql_fetch_object)
{
@@ -985,7 +985,7 @@ PHP_FUNCTION(msql_fetch_object)
}
/* }}} */
-/* {{{ proto array msql_fetch_array(int query [, int result_type])
+/* {{{ proto array msql_fetch_array(resource query [, int result_type])
Fetch a result row as an associative array */
PHP_FUNCTION(msql_fetch_array)
{
@@ -993,7 +993,7 @@ PHP_FUNCTION(msql_fetch_array)
}
/* }}} */
-/* {{{ proto int msql_data_seek(int query, int row_number)
+/* {{{ proto bool msql_data_seek(resource query, int row_number)
Move internal result pointer */
PHP_FUNCTION(msql_data_seek)
{
@@ -1059,7 +1059,7 @@ static char *php_msql_get_field_name(int field_type)
}
/* }}} */
-/* {{{ proto object msql_fetch_field(int query [, int field_offset])
+/* {{{ proto object msql_fetch_field(resource query [, int field_offset])
Get column information from a result and return as an object */
PHP_FUNCTION(msql_fetch_field)
{
@@ -1110,7 +1110,7 @@ PHP_FUNCTION(msql_fetch_field)
}
/* }}} */
-/* {{{ proto int msql_field_seek(int query, int field_offset)
+/* {{{ proto bool msql_field_seek(resource query, int field_offset)
Set result pointer to a specific field offset */
PHP_FUNCTION(msql_field_seek)
{
@@ -1231,7 +1231,7 @@ static void php_msql_field_info(INTERNAL_FUNCTION_PARAMETERS, int entry_type)
}
/* }}} */
-/* {{{ proto string msql_field_name(int query, int field_index)
+/* {{{ proto string msql_field_name(resource query, int field_index)
Get the name of the specified field in a result */
PHP_FUNCTION(msql_field_name)
{
@@ -1239,7 +1239,7 @@ PHP_FUNCTION(msql_field_name)
}
/* }}} */
-/* {{{ proto string msql_field_table(int query, int field_offset)
+/* {{{ proto string msql_field_table(resource query, int field_offset)
Get name of the table the specified field is in */
PHP_FUNCTION(msql_field_table)
{
@@ -1255,7 +1255,7 @@ PHP_FUNCTION(msql_field_len)
}
/* }}} */
-/* {{{ proto string msql_field_type(int query, int field_offset)
+/* {{{ proto string msql_field_type(resource query, int field_offset)
Get the type of the specified field in a result */
PHP_FUNCTION(msql_field_type)
{
@@ -1263,7 +1263,7 @@ PHP_FUNCTION(msql_field_type)
}
/* }}} */
-/* {{{ proto string msql_field_flags(int query, int field_offset)
+/* {{{ proto string msql_field_flags(resource query, int field_offset)
Get the flags associated with the specified field in a result */
PHP_FUNCTION(msql_field_flags)
{
@@ -1271,7 +1271,7 @@ PHP_FUNCTION(msql_field_flags)
}
/* }}} */
-/* {{{ proto int msql_free_result(int query)
+/* {{{ proto bool msql_free_result(resource query)
Free result memory */
PHP_FUNCTION(msql_free_result)
{
@@ -1289,7 +1289,7 @@ PHP_FUNCTION(msql_free_result)
}
/* }}} */
-/* {{{ proto int msql_affected_rows(int query)
+/* {{{ proto int msql_affected_rows(resource query)
Return number of affected rows */
PHP_FUNCTION(msql_affected_rows)
{