PR_COMMAND *prcommand;
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &mysql_link, mysqli_link_class_entry) == FAILURE) {
- return;
+ return; /* Should this be RETURN_FALSE? */
}
MYSQLI_FETCH_RESOURCE(mysql, MYSQL *, prmysql, PR_MYSQL *, &mysql_link, "mysqli_link");
unsigned long automode;
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ob", &mysql_link, mysqli_link_class_entry, &automode) == FAILURE) {
- return;
+ return; /* Should this be RETURN_FALSE? */
}
MYSQLI_FETCH_RESOURCE(mysql, MYSQL *, prmysql, PR_MYSQL *, &mysql_link, "mysqli_link");
/* }}} */
/* {{{ proto bool mysqli_bind_param(resource stmt, mixed variable, int type [,mixed,....])
- Bind variables to a prepared statement as parameters
-*/
-
+ Bind variables to a prepared statement as parameters */
PHP_FUNCTION(mysqli_bind_param)
{
zval ***args;
/* }}} */
/* {{{ proto bool mysqli_bind_result(resource stmt, mixed var, int len [,mixed,int....])
- Bind variables to a prepared statement for result storage
-*/
+ Bind variables to a prepared statement for result storage */
/* TODO:
do_alloca, free_alloca
/* }}} */
/* {{{ proto bool mysqli_change_user(resource link, string user, string password, string database)
- Change logged in user of the active connection */
+ Change logged-in user of the active connection */
PHP_FUNCTION(mysqli_change_user)
{
MYSQL *mysql;
/* }}} */
/* {{{ proto string mysqli_character_set_name(resource link)
- Returns the name of the charater set used for this connection
-*/
+ Returns the name of the character set used for this connection */
PHP_FUNCTION(mysqli_character_set_name)
{
MYSQL *mysql;
/* }}} */
/* {{{ proto bool mysqli_commit(resource link)
- Commit outstanding actions and close transaction
-*/
+ Commit outstanding actions and close transaction */
PHP_FUNCTION(mysqli_commit)
{
MYSQL *mysql;
/* }}} */
/* {{{ proto int mysqli_execute(resource stmt)
- Execute a prepared statement
-*/
+ Execute a prepared statement */
PHP_FUNCTION(mysqli_execute)
{
STMT *stmt;
/* }}} */
/* {{{ proto int mysqli_fetch(resource stmt)
- Fetch results from a prepared statement into the bound variables
-*/
+ Fetch results from a prepared statement into the bound variables */
PHP_FUNCTION(mysqli_fetch)
{
STMT *stmt;
/* }}} */
/* {{{ proto int mysqli_fetch_fields (resource result)
-*/
+ Return array of objects containing field meta-data */
PHP_FUNCTION(mysqli_fetch_fields)
{
MYSQL_RES *result;
/* }}} */
/* {{{ proto int mysqli_fetch_field_direct (resource result, int offset)
-*/
+ Fetch meta-data for a single field */
PHP_FUNCTION(mysqli_fetch_field_direct)
{
MYSQL_RES *result;
/* }}} */
/* {{{ proto int mysqli_field_count(resource link)
+ Fetch the number of fields returned by the last query for the given link
*/
PHP_FUNCTION(mysqli_field_count)
{
/* }}} */
/* {{{ proto int mysqli_field_seek(resource link, int fieldnr)
- Set result pointer to a specified field offset */
+ Set result pointer to a specified field offset
+*/
PHP_FUNCTION(mysqli_field_seek)
{
MYSQL_RES *result;
/* }}} */
/* {{{ proto int mysqli_free_result(resource result)
- Free result memory */
+ Free query result memory for the given result handle */
PHP_FUNCTION(mysqli_free_result)
{
MYSQL_RES *result;
/* }}} */
/* {{{ proto int mysqli_get_proto_info
- Get MySQL protocol info
-*/
+ Get MySQL protocol information */
PHP_FUNCTION(mysqli_get_proto_info)
{
MYSQL *mysql;
/* }}} */
/* {{{ proto int mysqli_get_server_version(resource link)
-*/
+ Return the MySQL version for the server referenced by the given link */
PHP_FUNCTION(mysqli_get_server_version)
{
MYSQL *mysql;
/* }}} */
/* {{{ proto resource mysqli_init(void)
- initialize mysqli */
+ Initialize mysqli and return a resource for use with mysql_real_connect */
PHP_FUNCTION(mysqli_init)
{
MYSQLI_RESOURCE *mysqli_resource = (MYSQLI_RESOURCE *)ecalloc (1, sizeof(MYSQLI_RESOURCE));
/* }}} */
/* {{{ proto bool mysqli_master_query(resource link, string query)
- Enforce execution of a query on the master in a master/slace setup */
+ Enforce execution of a query on the master in a master/slave setup */
PHP_FUNCTION(mysqli_master_query) {
MYSQL *mysql;
zval *mysql_link;
/* }}} */
/* {{{ proto bool mysqli_real_connect(resource link [,string hostname [,string username [,string passwd [,string dbname [,int port [,string socket [,int flags]]]]]]])
- open a connection to a mysql server */
+ Open a connection to a mysql server */
PHP_FUNCTION(mysqli_real_connect)
{
MYSQL *mysql;
/* }}} */
/* {{{ proto bool mysqli_real_query(resource link, string query)
-*/
+ Binary-safe version of mysql_query() */
PHP_FUNCTION(mysqli_real_query)
{
MYSQL *mysql;
/* }}} */
/* {{{ proto mixed mysqli_stmt_affected_rows(resource stmt)
- */
+ Return the number of rows affected in the last query for the given link */
PHP_FUNCTION(mysqli_stmt_affected_rows)
{
STMT *stmt;
/* }}} */
/* {{{ proto resource mysqli_store_result(resource link)
-*/
+ Buffer result set on client */
PHP_FUNCTION(mysqli_store_result)
{
MYSQL *mysql;
/* }}} */
/* {{{ proto resource mysqli_use_result(resource link)
-*/
+ Directly retrieve query results - do not buffer results on client side */
PHP_FUNCTION(mysqli_use_result)
{
MYSQL *mysql;
/* }}} */
/* {{{ proto resource mysqli_warning_count (resource link)
-*/
+ Return number of warnings from the last query for the given link */
PHP_FUNCTION(mysqli_warning_count)
{
MYSQL *mysql;