hholzgra Sat Mar 15 17:51:49 2003 EDT
Modified files:
/php4/ext/mysqli mysqli_api.c mysqli_nonapi.c mysqli_profiler.c
Log:
lots of proto stuff
Index: php4/ext/mysqli/mysqli_api.c
diff -u php4/ext/mysqli/mysqli_api.c:1.19 php4/ext/mysqli/mysqli_api.c:1.20
--- php4/ext/mysqli/mysqli_api.c:1.19 Mon Mar 10 20:19:21 2003
+++ php4/ext/mysqli/mysqli_api.c Sat Mar 15 17:51:49 2003
@@ -15,7 +15,7 @@
| Author: Georg Richter <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: mysqli_api.c,v 1.19 2003/03/11 01:19:21 georg Exp $
+ $Id: mysqli_api.c,v 1.20 2003/03/15 22:51:49 hholzgra Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -31,7 +31,7 @@
/* {{{ proto mixed mysqli_affected_rows(resource link)
-*/
+ Get number of affected rows in previous MySQL operation */
PHP_FUNCTION(mysqli_affected_rows)
{
MYSQL *mysql;
@@ -54,7 +54,7 @@
/* }}} */
/* {{{ proto bool mysqli_autocommit(resource link, bool mode)
-*/
+ Turn auto commit on or of */
PHP_FUNCTION(mysqli_autocommit)
{
MYSQL *mysql;
@@ -77,7 +77,8 @@
}
/* }}} */
-/* {{{ proto bool mysqli_bind_param(resource stmt, mixed, [mixed,....])
+/* {{{ proto bool mysqli_bind_param(resource stmt, mixed variable, int type
[,mixed,....])
+ Bind variables to a prepared statement as parameters
*/
PHP_FUNCTION(mysqli_bind_param)
@@ -204,7 +205,8 @@
}
/* }}} */
-/* {{{ proto bool mysqli_bind_result(resource stmt, mixed var, long len,
[mixed,long....])
+/* {{{ proto bool mysqli_bind_result(resource stmt, mixed var, int len
[,mixed,int....])
+ Bind variables to a prepared statement for result storage
*/
/* TODO:
@@ -358,7 +360,7 @@
/* }}} */
/* {{{ proto bool mysqli_change_user(resource link, string user, string password,
string database)
-*/
+ Change logged in user of the active connection */
PHP_FUNCTION(mysqli_change_user)
{
MYSQL *mysql;
@@ -386,6 +388,7 @@
/* }}} */
/* {{{ proto string mysqli_character_set_name(resource link)
+ Returns the name of the charater set used for this connection
*/
PHP_FUNCTION(mysqli_character_set_name)
{
@@ -410,7 +413,7 @@
/* }}} */
/* {{{ proto bool mysqli_close(resource link)
- close connection */
+ Close connection */
PHP_FUNCTION(mysqli_close)
{
zval *mysql_link;
@@ -439,6 +442,7 @@
/* }}} */
/* {{{ proto bool mysqli_commit(resource link)
+ Commit outstanding actions and close transaction
*/
PHP_FUNCTION(mysqli_commit)
{
@@ -460,7 +464,7 @@
/* }}} */
/* {{{ proto void mysqli_data_seek(resource result)
-*/
+ Move internal result pointer */
PHP_FUNCTION(mysqli_data_seek)
{
MYSQL_RES *result;
@@ -615,7 +619,7 @@
/* }}} */
/* {{{ proto int mysqli_errno(resource link)
-*/
+ Returns the numerical value of the error message from previous MySQL operation */
PHP_FUNCTION(mysqli_errno)
{
MYSQL *mysql;
@@ -631,7 +635,7 @@
/* }}} */
/* {{{ proto string mysql_error(resource link)
-*/
+ Returns the text of the error message from previous MySQL operation */
PHP_FUNCTION(mysqli_error)
{
MYSQL *mysql;
@@ -647,6 +651,7 @@
/* }}} */
/* {{{ proto int mysqli_execute(resource stmt)
+ Execute a prepared statement
*/
PHP_FUNCTION(mysqli_execute)
{
@@ -691,6 +696,7 @@
/* }}} */
/* {{{ proto int mysqli_fetch(resource stmt)
+ Fetch results from a prepared statement into the bound variables
*/
PHP_FUNCTION(mysqli_fetch)
{
@@ -761,7 +767,7 @@
/* }}} */
/* {{{ proto int mysql_fetch_field (resource result)
-*/
+ Get column information from a result and return as an object */
PHP_FUNCTION(mysqli_fetch_field)
{
MYSQL_RES *result;
@@ -874,7 +880,7 @@
/* }}} */
/* {{{ proto array mysqli_fetch_lengths (resource result)
-*/
+ Get the length of each output in a result */
PHP_FUNCTION(mysqli_fetch_lengths)
{
MYSQL_RES *result;
@@ -903,7 +909,7 @@
/* }}} */
/* {{{ proto array mysqli_fetch_row (resource result)
-*/
+ Get a result row as an enumerated array */
PHP_FUNCTION(mysqli_fetch_row)
{
php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MYSQLI_NUM);
@@ -928,7 +934,7 @@
/* }}} */
/* {{{ proto int mysqli_field_seek(resource link, int fieldnr)
-*/
+ Set result pointer to a specified field offset */
PHP_FUNCTION(mysqli_field_seek)
{
MYSQL_RES *result;
@@ -952,7 +958,7 @@
/* }}} */
/* {{{ proto int mysqli_field_tell(resource result)
-*/
+ Get current field offset of result pointer */
PHP_FUNCTION(mysqli_field_tell)
{
MYSQL_RES *result;
@@ -969,7 +975,7 @@
/* }}} */
/* {{{ proto int mysqli_free_result(resource result)
-*/
+ Free result memory */
PHP_FUNCTION(mysqli_free_result)
{
MYSQL_RES *result;
@@ -991,8 +997,8 @@
}
/* }}} */
-/* {{{ proto string mysqli_get_client_info
-*/
+/* {{{ proto string mysqli_get_client_info(void)
+ Get MySQL client info */
PHP_FUNCTION(mysqli_get_client_info)
{
RETURN_STRING((char *)mysql_get_client_info(), 1);
@@ -1000,7 +1006,7 @@
/* }}} */
/* {{{ proto string mysqli_get_host_info (resource link)
-*/
+ Get MySQL host info */
PHP_FUNCTION(mysqli_get_host_info)
{
MYSQL *mysql;
@@ -1017,6 +1023,7 @@
/* }}} */
/* {{{ proto int mysqli_get_proto_info
+ Get MySQL protocol info
*/
PHP_FUNCTION(mysqli_get_proto_info)
{
@@ -1034,7 +1041,7 @@
/* }}} */
/* {{{ proto string mysqli_get_server_info(resource link)
-*/
+ Get MySQL server info */
PHP_FUNCTION(mysqli_get_server_info)
{
MYSQL *mysql;
@@ -1070,7 +1077,7 @@
/* }}} */
/* {{{ proto string mysqli_info(resource link)
-*/
+ Get information about the most recent query */
PHP_FUNCTION(mysqli_info)
{
MYSQL *mysql;
@@ -1102,7 +1109,7 @@
/* }}} */
/* {{{ proto mixed mysqli_insert_id(resource link)
-*/
+ Get the ID generated from the previous INSERT operation */
PHP_FUNCTION(mysqli_insert_id)
{
MYSQL *mysql;
@@ -1120,7 +1127,7 @@
/* }}} */
/* {{{ proto bool mysqli_kill(resource link, int processid)
-*/
+ Kill a mysql process on the server */
PHP_FUNCTION(mysqli_kill)
{
MYSQL *mysql;
@@ -1142,7 +1149,7 @@
/* }}} */
/* {{{ proto bool mysqli_master_query(resource link, string query)
-*/
+ Enforce execution of a query on the master in a master/slace setup */
PHP_FUNCTION(mysqli_master_query) {
MYSQL *mysql;
zval *mysql_link;
@@ -1163,7 +1170,7 @@
/* }}} */
/* {{{ proto int mysqli_num_fields(resource result)
-*/
+ Get number of fields in result */
PHP_FUNCTION(mysqli_num_fields)
{
MYSQL_RES *result;
@@ -1181,7 +1188,7 @@
/* }}} */
/* {{{ proto int mysqli_num_rows(resource result)
-*/
+ Get number of rows in result */
PHP_FUNCTION(mysqli_num_rows)
{
MYSQL_RES *result;
@@ -1208,7 +1215,7 @@
/* }}} */
/* {{{ proto bool mysqli_options(resource link, int flags, mixed values)
- set options */
+ Set options */
PHP_FUNCTION(mysqli_options)
{
MYSQL *mysql;
@@ -1244,7 +1251,7 @@
/* }}} */
/* {{{ proto int mysqli_param_count(resource stmt) {
- return the number of parameter for the given statement */
+ Return the number of parameter for the given statement */
PHP_FUNCTION(mysqli_param_count)
{
STMT *stmt;
@@ -1261,7 +1268,7 @@
/* }}} */
/* {{{ proto int mysqli_ping(resource link)
-*/
+ Ping a server connection or reconnect if there is no connection */
PHP_FUNCTION(mysqli_ping)
{
MYSQL *mysql;
@@ -1276,8 +1283,8 @@
}
/* }}} */
-/* {{{ proto resource mysqli_prepare(resource link, char* query)
- */
+/* {{{ proto resource mysqli_prepare(resource link, string query)
+ Prepare a SQL statement for execution */
PHP_FUNCTION(mysqli_prepare)
{
MYSQL *mysql;
@@ -1331,8 +1338,8 @@
}
/* }}} */
-/* {{{ proto resource mysqli_prepare_result(stmt)
-*/
+/* {{{ proto resource mysqli_prepare_result(resource stmt)
+ */
PHP_FUNCTION(mysqli_prepare_result)
{
STMT *stmt;
@@ -1374,7 +1381,7 @@
}
/* }}} */
-/* {{{ proto bool mysqli_real_connect(resource link, [string hostname, [string
username, [string passwd, [string dbname, [int port, [string socket]]]]])
+/* {{{ proto bool mysqli_real_connect(resource link [,string hostname [,string
username [,string passwd [,string dbname [,int port [,string socket]]]]]])
open a connection to a mysql server */
PHP_FUNCTION(mysqli_real_connect)
{
@@ -1445,7 +1452,7 @@
/* }}} */
/* {{{ proto string mysqli_real_escape_string(resource link, string escapestr)
- close statement */
+ Escapes special characters in a string for use in a SQL statement, taking into
account the current charset of the connection */
PHP_FUNCTION(mysqli_real_escape_string) {
MYSQL *mysql;
zval *mysql_link = NULL;
@@ -1484,7 +1491,7 @@
/* }}} */
/* {{{ proto bool mysqli_rollback(resource link)
-*/
+ Undo actions from current transaction */
PHP_FUNCTION(mysqli_rollback)
{
MYSQL *mysql;
@@ -1557,7 +1564,7 @@
}
/* }}} */
-/* {{{ proto bool mysqli_send_long_data(resource stmt, long param_nr, string data)
+/* {{{ proto bool mysqli_send_long_data(resource stmt, int param_nr, string data)
*/
PHP_FUNCTION(mysqli_send_long_data)
{
@@ -1609,7 +1616,7 @@
/* }}} */
/* {{{ proto bool mysqli_slave_query(resource link, string query)
-*/
+ Enforce execution of a query on a slave in a master/slave setup */
PHP_FUNCTION(mysqli_slave_query)
{
MYSQL *mysql;
@@ -1630,8 +1637,8 @@
}
/* }}} */
-/* {{{ proto mixed mysqli_stmt_affected_rows(object stmt)
-*/
+/* {{{ proto mixed mysqli_stmt_affected_rows(resource stmt)
+ */
PHP_FUNCTION(mysqli_stmt_affected_rows)
{
STMT *stmt;
@@ -1650,7 +1657,7 @@
/* }}} */
/* {{{ proto bool mysqli_stmt_close(resource stmt)
- close statement */
+ Close statement */
PHP_FUNCTION(mysqli_stmt_close)
{
STMT *stmt;
@@ -1671,7 +1678,7 @@
/* }}} */
/* {{{ proto string mysqli_select_db(resource link, string dbname)
-*/
+ Select a MySQL database */
PHP_FUNCTION(mysqli_select_db)
{
MYSQL *mysql;
@@ -1694,7 +1701,7 @@
}
/* }}} */
-/* {{{ proto string mysqli_ssl_set(resource link, [string key, [string cert, [string
ca, [string capath, [string cipher]]]]])
+/* {{{ proto string mysqli_ssl_set(resource link [,string key [,string cert [,string
ca [,string capath [,string cipher]]]]])
*/
PHP_FUNCTION(mysqli_ssl_set)
{
@@ -1716,8 +1723,8 @@
}
/* }}} */
-/* {{{ proto string mysqli_stat
-*/
+/* {{{ proto string mysqli_stat(resource link)
+ Get current system status */
PHP_FUNCTION(mysqli_stat)
{
MYSQL *mysql;
@@ -1813,8 +1820,7 @@
/* }}} */
/* {{{ proto int mysqli_thread_id(resource link)
-*/
-
+ Return the current thread ID */
PHP_FUNCTION(mysqli_thread_id)
{
MYSQL *mysql;
@@ -1831,7 +1837,7 @@
/* }}} */
/* {{{ proto bool mysqli_thread_safe(void)
-*/
+ Return whether thread safety is given or not */
PHP_FUNCTION(mysqli_thread_safe)
{
RETURN_BOOL(mysql_thread_safe());
Index: php4/ext/mysqli/mysqli_nonapi.c
diff -u php4/ext/mysqli/mysqli_nonapi.c:1.8 php4/ext/mysqli/mysqli_nonapi.c:1.9
--- php4/ext/mysqli/mysqli_nonapi.c:1.8 Mon Mar 10 20:19:21 2003
+++ php4/ext/mysqli/mysqli_nonapi.c Sat Mar 15 17:51:49 2003
@@ -15,7 +15,7 @@
| Author: Georg Richter <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: mysqli_nonapi.c,v 1.8 2003/03/11 01:19:21 georg Exp $
+ $Id: mysqli_nonapi.c,v 1.9 2003/03/15 22:51:49 hholzgra Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -29,8 +29,8 @@
#include "ext/standard/info.h"
#include "php_mysqli.h"
-/* {{{ proto resource mysqli_connect([string hostname, [string username, [string
passwd, [string dbname, [int port, [string socket]]]]])
- open a connection to a mysql server */
+/* {{{ proto resource mysqli_connect([string hostname [,string username [,string
passwd [,string dbname [,int port [,string socket]]]]]])
+ Open a connection to a mysql server */
PHP_FUNCTION(mysqli_connect)
{
MYSQL *mysql;
@@ -99,8 +99,8 @@
}
/* }}} */
-/* {{{ proto array mysqli_fetch_array (resource result, [int resulttype])
-*/
+/* {{{ proto array mysqli_fetch_array (resource result [,int resulttype])
+ Fetch a result row as an associative array, a numeric array, or both */
PHP_FUNCTION(mysqli_fetch_array)
{
php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
@@ -108,7 +108,7 @@
/* }}} */
/* {{{ proto array mysqli_fetch_assoc (resource result)
-*/
+ Fetch a result row as an associative array */
PHP_FUNCTION(mysqli_fetch_assoc)
{
php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MYSQLI_ASSOC);
@@ -116,7 +116,7 @@
/* }}} */
/* {{{ proto array mysqli_fetch_object (resource result)
-*/
+ Fetch a result row as an object */
PHP_FUNCTION(mysqli_fetch_object)
{
php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MYSQLI_ASSOC);
@@ -127,8 +127,8 @@
}
/* }}} */
-/* {{{ proto resource mysqli_query(resource link, string query, [int resultmode])
-*/
+/* {{{ proto resource mysqli_query(resource link, string query [,int resultmode])
+ Send a MySQL query */
PHP_FUNCTION(mysqli_query) {
MYSQL *mysql;
zval *mysql_link;
Index: php4/ext/mysqli/mysqli_profiler.c
diff -u php4/ext/mysqli/mysqli_profiler.c:1.3 php4/ext/mysqli/mysqli_profiler.c:1.4
--- php4/ext/mysqli/mysqli_profiler.c:1.3 Mon Mar 10 20:19:21 2003
+++ php4/ext/mysqli/mysqli_profiler.c Sat Mar 15 17:51:49 2003
@@ -15,7 +15,7 @@
| Author: Georg Richter <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: mysqli_profiler.c,v 1.3 2003/03/11 01:19:21 georg Exp $
+ $Id: mysqli_profiler.c,v 1.4 2003/03/15 22:51:49 hholzgra Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -413,7 +413,7 @@
}
/* }}} */
-/* {{{ proto bool mysqli_profiler (int flags, char *info, int port)
+/* {{{ proto bool mysqli_profiler (int flags, string info, int port)
*/
PHP_FUNCTION(mysqli_profiler)
{
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php