andrey Thu Jun 12 06:08:26 2003 EDT
Modified files:
/php4/ext/mssql php_mssql.c
Log:
proto fixes
Index: php4/ext/mssql/php_mssql.c
diff -u php4/ext/mssql/php_mssql.c:1.112 php4/ext/mssql/php_mssql.c:1.113
--- php4/ext/mssql/php_mssql.c:1.112 Tue Jun 10 16:03:32 2003
+++ php4/ext/mssql/php_mssql.c Thu Jun 12 06:08:26 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mssql.c,v 1.112 2003/06/10 20:03:32 imajes Exp $ */
+/* $Id: php_mssql.c,v 1.113 2003/06/12 10:08:26 andrey Exp $ */
#ifdef COMPILE_DL_MSSQL
#define HAVE_MSSQL 1
@@ -683,7 +683,7 @@
/* }}} */
-/* {{{ proto int mssql_close([int connectionid])
+/* {{{ proto bool mssql_close([resource conn_id])
Closes a connection to a MS-SQL server */
PHP_FUNCTION(mssql_close)
{
@@ -718,7 +718,7 @@
/* }}} */
-/* {{{ proto bool mssql_select_db(string database_name [, int conn_id])
+/* {{{ proto bool mssql_select_db(string database_name [, resource conn_id])
Select a MS-SQL database */
PHP_FUNCTION(mssql_select_db)
{
@@ -1078,7 +1078,7 @@
}
/* }}} */
-/* {{{ proto int mssql_query(string query [, int conn_id [, int batch_size]])
+/* {{{ proto resource mssql_query(string query [, resource conn_id [, int
batch_size]])
Perform an SQL query on a MS-SQL server database */
PHP_FUNCTION(mssql_query)
{
@@ -1165,7 +1165,7 @@
}
/* }}} */
-/* {{{ proto int mssql_rows_affected(int conn_id)
+/* {{{ proto int mssql_rows_affected(resource conn_id)
Returns the number of records affected by the query */
PHP_FUNCTION(mssql_rows_affected)
{
@@ -1182,7 +1182,7 @@
/* }}} */
-/* {{{ proto int mssql_free_result(resource result_index)
+/* {{{ proto bool mssql_free_result(resource result_index)
Free a MS-SQL result index */
PHP_FUNCTION(mssql_free_result)
{
@@ -1224,7 +1224,7 @@
/* }}} */
-/* {{{ proto int mssql_num_rows(int mssql_result_index)
+/* {{{ proto int mssql_num_rows(resource mssql_result_index)
Returns the number of rows fetched in from the result id specified */
PHP_FUNCTION(mssql_num_rows)
{
@@ -1243,7 +1243,7 @@
/* }}} */
-/* {{{ proto int mssql_num_fields(int mssql_result_index)
+/* {{{ proto int mssql_num_fields(resource mssql_result_index)
Returns the number of fields fetched in from the result id specified */
PHP_FUNCTION(mssql_num_fields)
{
@@ -1355,7 +1355,7 @@
result->cur_row++;
}
-/* {{{ proto array mssql_fetch_row(int result_id [, int result_type])
+/* {{{ proto array mssql_fetch_row(resource result_id [, int result_type])
Returns an array of the current row in the result set specified by result_id */
PHP_FUNCTION(mssql_fetch_row)
{
@@ -1364,7 +1364,7 @@
/* }}} */
-/* {{{ proto object mssql_fetch_object(int result_id [, int result_type])
+/* {{{ proto object mssql_fetch_object(resource result_id [, int result_type])
Returns a psuedo-object of the current row in the result set specified by
result_id */
PHP_FUNCTION(mssql_fetch_object)
{
@@ -1376,7 +1376,7 @@
/* }}} */
-/* {{{ proto array mssql_fetch_array(int result_id [, int result_type])
+/* {{{ proto array mssql_fetch_array(resource result_id [, int result_type])
Returns an associative array of the current row in the result set specified by
result_id */
PHP_FUNCTION(mssql_fetch_array)
{
@@ -1385,7 +1385,7 @@
/* }}} */
-/* {{{ proto array mssql_fetch_assoc(int result_id [, int result_type])
+/* {{{ proto array mssql_fetch_assoc(resource result_id [, int result_type])
Returns an associative array of the current row in the result set specified by
result_id */
PHP_FUNCTION(mssql_fetch_assoc)
{
@@ -1394,7 +1394,7 @@
/* }}} */
-/* {{{ proto int mssql_data_seek(int result_id, int offset)
+/* {{{ proto bool mssql_data_seek(resource result_id, int offset)
Moves the internal row pointer of the MS-SQL result associated with the specified
result identifier to pointer to the specified row number */
PHP_FUNCTION(mssql_data_seek)
{
@@ -1470,7 +1470,7 @@
}
}
-/* {{{ proto object mssql_fetch_field(int result_id [, int offset])
+/* {{{ proto object mssql_fetch_field(resource result_id [, int offset])
Gets information about certain fields in a query result */
PHP_FUNCTION(mssql_fetch_field)
{
@@ -1522,7 +1522,7 @@
/* }}} */
-/* {{{ proto int mssql_field_length(int result_id [, int offset])
+/* {{{ proto int mssql_field_length(resource result_id [, int offset])
Get the length of a MS-SQL field */
PHP_FUNCTION(mssql_field_length)
{
@@ -1569,7 +1569,7 @@
/* }}} */
-/* {{{ proto string mssql_field_name(int result_id [, int offset])
+/* {{{ proto string mssql_field_name(resource result_id [, int offset])
Returns the name of the field given by offset in the result set given by result_id
*/
PHP_FUNCTION(mssql_field_name)
{
@@ -1617,7 +1617,7 @@
/* }}} */
-/* {{{ proto string mssql_field_type(int result_id [, int offset])
+/* {{{ proto string mssql_field_type(resource result_id [, int offset])
Returns the type of a field */
PHP_FUNCTION(mssql_field_type)
{
@@ -1693,7 +1693,7 @@
/* }}} */
-/* {{{ proto string mssql_result(int result_id, int row, mixed field)
+/* {{{ proto string mssql_result(resource result_id, int row, mixed field)
Returns the contents of one cell from a MS-SQL result set */
PHP_FUNCTION(mssql_result)
{
@@ -1744,7 +1744,7 @@
}
/* }}} */
-/* {{{ proto bool mssql_next_result(int result_id)
+/* {{{ proto bool mssql_next_result(resource result_id)
Move the internal result pointer to the next result */
PHP_FUNCTION(mssql_next_result)
{
@@ -1815,7 +1815,7 @@
}
/* }}} */
-/* {{{ proto int mssql_init(string sp_name [, int conn_id])
+/* {{{ proto int mssql_init(string sp_name [, resource conn_id])
Initializes a stored procedure or a remote stored procedure */
PHP_FUNCTION(mssql_init)
{
@@ -1865,7 +1865,7 @@
}
/* }}} */
-/* {{{ proto int mssql_bind(int stmt, string param_name, mixed var, int type
+/* {{{ proto bool mssql_bind(resource stmt, string param_name, mixed var, int type
[, int is_output[, int is_null[, int maxlen]]])
Adds a parameter to a stored procedure or a remote stored procedure */
PHP_FUNCTION(mssql_bind)
@@ -2023,7 +2023,7 @@
}
/* }}} */
-/* {{{ proto int mssql_execute(int stmt [, bool skip_results = false])
+/* {{{ proto mixed mssql_execute(resource stmt [, bool skip_results = false])
Executes a stored procedure on a MS-SQL server database */
PHP_FUNCTION(mssql_execute)
{
@@ -2112,7 +2112,7 @@
}
/* }}} */
-/* {{{ proto int mssql_free_statement(resource result_index)
+/* {{{ proto bool mssql_free_statement(resource result_index)
Free a MS-SQL statement index */
PHP_FUNCTION(mssql_free_statement)
{
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php