Back to index

php5  5.3.10
Functions
mysqlnd_result.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PHPAPI MYSQLND_RES * mysqlnd_result_init (unsigned int field_count, zend_bool persistent TSRMLS_DC)
PHPAPI struct
st_mysqlnd_res_methods
mysqlnd_result_get_methods ()
enum_func_status mysqlnd_query_read_result_set_header (MYSQLND *conn, MYSQLND_STMT *stmt TSRMLS_DC)

Function Documentation

enum_func_status mysqlnd_query_read_result_set_header ( MYSQLND *  conn,
MYSQLND_STMT *stmt  TSRMLS_DC 
)

Definition at line 1750 of file mysqlnd_result.c.

{
       return &mysqlnd_mysqlnd_res_methods;
}
PHPAPI MYSQLND_RES* mysqlnd_result_init ( unsigned int  field_count,
zend_bool persistent  TSRMLS_DC 
)

Definition at line 1714 of file mysqlnd_result.c.

{
       size_t alloc_size = sizeof(MYSQLND_RES) + mysqlnd_plugin_count() * sizeof(void *);
       MYSQLND_RES *ret = mnd_pecalloc(1, alloc_size, persistent);

       DBG_ENTER("mysqlnd_result_init");
       DBG_INF_FMT("field_count=%u", field_count);

       if (!ret) {
              DBG_RETURN(NULL);
       }

       ret->persistent             = persistent;
       ret->field_count     = field_count;
       ret->m = mysqlnd_mysqlnd_res_methods;

       DBG_RETURN(ret);
}

Here is the call graph for this function: