Back to index

php5  5.3.10
Defines | Functions | Variables
mysqlnd.h File Reference
#include "mysqlnd_portability.h"
#include "mysqlnd_enum_n_def.h"
#include "mysqlnd_structs.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MYSQLND_VERSION   "mysqlnd 5.0.8-dev - 20102224 - $Revision: 321634 $"
#define MYSQLND_VERSION_ID   50008
#define MYSQLND_USE_OPTIMISATIONS   0
#define AUTOCOMMIT_TX_COMMIT_ROLLBACK
#define MYSQLND_STRING_TO_INT_CONVERSION
#define MYSQLND_DBG_ENABLED   0
#define mysqlnd_plugin_get_plugin_connection_data(c, p_id)   _mysqlnd_plugin_get_plugin_connection_data((c), (p_id) TSRMLS_CC)
#define mysqlnd_plugin_get_plugin_result_data(r, p_id)   _mysqlnd_plugin_get_plugin_result_data((r), (p_id) TSRMLS_CC)
#define mysqlnd_plugin_get_plugin_stmt_data(s, p_id)   _mysqlnd_plugin_get_plugin_stmt_data((s), (p_id) TSRMLS_CC)
#define mysqlnd_plugin_get_plugin_protocol_data(p, p_id)   _mysqlnd_plugin_get_plugin_protocol_data((p), (p_id) TSRMLS_CC)
#define mysqlnd_restart_psession(conn)   (conn)->m->restart_psession((conn) TSRMLS_CC)
#define mysqlnd_end_psession(conn)   (conn)->m->end_psession((conn) TSRMLS_CC)
#define mysqlnd_thread_safe()   TRUE
#define mysqlnd_init(persistent)   _mysqlnd_init((persistent) TSRMLS_CC)
#define mysqlnd_change_user(conn, user, passwd, db, silent)   (conn)->m->change_user((conn), (user), (passwd), (db), (silent) TSRMLS_CC)
#define mysqlnd_debug(x)   _mysqlnd_debug((x) TSRMLS_CC)
#define mysqlnd_fetch_into(result, flags, ret_val, ext)   (result)->m.fetch_into((result), (flags), (ret_val), (ext) TSRMLS_CC ZEND_FILE_LINE_CC)
#define mysqlnd_fetch_row_c(result)   (result)->m.fetch_row_c((result) TSRMLS_CC)
#define mysqlnd_fetch_all(result, flags, return_value)   (result)->m.fetch_all((result), (flags), (return_value) TSRMLS_CC ZEND_FILE_LINE_CC)
#define mysqlnd_result_fetch_field_data(res, offset, ret)   (res)->m.fetch_field_data((res), (offset), (ret) TSRMLS_CC)
#define mysqlnd_get_connection_stats(conn, values)   (conn)->m->get_statistics((conn), (values) TSRMLS_CC ZEND_FILE_LINE_CC)
#define mysqlnd_get_client_stats(values)   _mysqlnd_get_client_stats((values) TSRMLS_CC ZEND_FILE_LINE_CC)
#define mysqlnd_close(conn, is_forced)   (conn)->m->close((conn), (is_forced) TSRMLS_CC)
#define mysqlnd_query(conn, query_str, query_len)   (conn)->m->query((conn), (query_str), (query_len) TSRMLS_CC)
#define mysqlnd_async_query(conn, query_str, query_len)   (conn)->m->send_query((conn), (query_str), (query_len) TSRMLS_CC)
#define mysqlnd_poll(r, err, d_pull, sec, usec, desc_num)   _mysqlnd_poll((r), (err), (d_pull), (sec), (usec), (desc_num) TSRMLS_CC)
#define mysqlnd_reap_async_query(conn)   (conn)->m->reap_query((conn) TSRMLS_CC)
#define mysqlnd_unbuffered_skip_result(result)   (result)->m.skip_result((result) TSRMLS_CC)
#define mysqlnd_use_result(conn)   (conn)->m->use_result((conn) TSRMLS_CC)
#define mysqlnd_store_result(conn)   (conn)->m->store_result((conn) TSRMLS_CC)
#define mysqlnd_next_result(conn)   (conn)->m->next_result((conn) TSRMLS_CC)
#define mysqlnd_more_results(conn)   (conn)->m->more_results((conn) TSRMLS_CC)
#define mysqlnd_free_result(r, e_or_i)   ((MYSQLND_RES*)r)->m.free_result(((MYSQLND_RES*)(r)), (e_or_i) TSRMLS_CC)
#define mysqlnd_data_seek(result, row)   (result)->m.seek_data((result), (row) TSRMLS_CC)
#define mysqlnd_errno(conn)   (conn)->m->get_error_no((conn) TSRMLS_CC)
#define mysqlnd_error(conn)   (conn)->m->get_error_str((conn) TSRMLS_CC)
#define mysqlnd_sqlstate(conn)   (conn)->m->get_sqlstate((conn) TSRMLS_CC)
#define mysqlnd_character_set_name(conn)   (conn)->m->charset_name((conn) TSRMLS_CC)
#define mysqlnd_field_count(conn)   (conn)->m->get_field_count((conn) TSRMLS_CC)
#define mysqlnd_insert_id(conn)   (conn)->m->get_last_insert_id((conn) TSRMLS_CC)
#define mysqlnd_affected_rows(conn)   (conn)->m->get_affected_rows((conn) TSRMLS_CC)
#define mysqlnd_warning_count(conn)   (conn)->m->get_warning_count((conn) TSRMLS_CC)
#define mysqlnd_info(conn)   (conn)->m->get_last_message((conn) TSRMLS_CC)
#define mysqlnd_get_server_info(conn)   (conn)->m->get_server_information((conn) TSRMLS_CC)
#define mysqlnd_get_host_info(conn)   (conn)->m->get_host_information((conn) TSRMLS_CC)
#define mysqlnd_get_proto_info(conn)   (conn)->m->get_protocol_information((conn) TSRMLS_CC)
#define mysqlnd_thread_id(conn)   (conn)->m->get_thread_id((conn) TSRMLS_CC)
#define mysqlnd_num_rows(result)   (result)->m.num_rows((result) TSRMLS_CC)
#define mysqlnd_num_fields(result)   (result)->m.num_fields((result) TSRMLS_CC)
#define mysqlnd_fetch_lengths(result)   _mysqlnd_fetch_lengths((result) TSRMLS_CC)
#define mysqlnd_field_seek(result, ofs)   (result)->m.seek_field((result), (ofs) TSRMLS_CC)
#define mysqlnd_field_tell(result)   (result)->m.field_tell((result) TSRMLS_CC)
#define mysqlnd_fetch_field(result)   (result)->m.fetch_field((result) TSRMLS_CC)
#define mysqlnd_fetch_field_direct(result, fnr)   (result)->m.fetch_field_direct((result), (fnr) TSRMLS_CC)
#define mysqlnd_fetch_fields(result)   (result)->m.fetch_fields((result) TSRMLS_CC)
#define mysqlnd_ssl_set(conn, key, cert, ca, capath, cipher)   (conn)->m->ssl_set((conn), (key), (cert), (ca), (capath), (cipher) TSRMLS_CC)
#define mysqlnd_stmt_insert_id(stmt)   (stmt)->m->get_last_insert_id((stmt) TSRMLS_CC)
#define mysqlnd_stmt_affected_rows(stmt)   (stmt)->m->get_affected_rows((stmt) TSRMLS_CC)
#define mysqlnd_stmt_num_rows(stmt)   (stmt)->m->get_num_rows((stmt) TSRMLS_CC)
#define mysqlnd_stmt_param_count(stmt)   (stmt)->m->get_param_count((stmt) TSRMLS_CC)
#define mysqlnd_stmt_field_count(stmt)   (stmt)->m->get_field_count((stmt) TSRMLS_CC)
#define mysqlnd_stmt_warning_count(stmt)   (stmt)->m->get_warning_count((stmt) TSRMLS_CC)
#define mysqlnd_stmt_server_status(stmt)   (stmt)->m->get_server_status((stmt) TSRMLS_CC)
#define mysqlnd_stmt_errno(stmt)   (stmt)->m->get_error_no((stmt) TSRMLS_CC)
#define mysqlnd_stmt_error(stmt)   (stmt)->m->get_error_str((stmt) TSRMLS_CC)
#define mysqlnd_stmt_sqlstate(stmt)   (stmt)->m->get_sqlstate((stmt) TSRMLS_CC)
#define mysqlnd_autocommit(conn, mode)   (conn)->m->set_autocommit((conn), (mode) TSRMLS_CC)
#define mysqlnd_commit(conn)   (conn)->m->tx_commit((conn) TSRMLS_CC)
#define mysqlnd_rollback(conn)   (conn)->m->tx_rollback((conn) TSRMLS_CC)
#define mysqlnd_list_dbs(conn, wild)   (conn)->m->list_method((conn), wild? "SHOW DATABASES LIKE %s":"SHOW DATABASES", (wild), NULL TSRMLS_CC)
#define mysqlnd_list_fields(conn, tab, wild)   (conn)->m->list_fields((conn), (tab), (wild) TSRMLS_CC)
#define mysqlnd_list_processes(conn)   (conn)->m->list_method((conn), "SHOW PROCESSLIST", NULL, NULL TSRMLS_CC)
#define mysqlnd_list_tables(conn, wild)   (conn)->m->list_method((conn), wild? "SHOW TABLES LIKE %s":"SHOW TABLES", (wild), NULL TSRMLS_CC)
#define mysqlnd_dump_debug_info(conn)   (conn)->m->server_dump_debug_information((conn) TSRMLS_CC)
#define mysqlnd_select_db(conn, db, db_len)   (conn)->m->select_db((conn), (db), (db_len) TSRMLS_CC)
#define mysqlnd_ping(conn)   (conn)->m->ping((conn) TSRMLS_CC)
#define mysqlnd_kill(conn, pid)   (conn)->m->kill_connection((conn), (pid) TSRMLS_CC)
#define mysqlnd_refresh(conn, options)   (conn)->m->refresh_server((conn), (options) TSRMLS_CC)
#define mysqlnd_shutdown(conn, level)   (conn)->m->shutdown_server((conn), (level) TSRMLS_CC)
#define mysqlnd_get_server_version(conn)   (conn)->m->get_server_version((conn) TSRMLS_CC)
#define mysqlnd_set_character_set(conn, cs)   (conn)->m->set_charset((conn), (cs) TSRMLS_CC)
#define mysqlnd_stat(conn, msg, msg_len)   (conn)->m->get_server_statistics((conn), (msg), (msg_len) TSRMLS_CC)
#define mysqlnd_options(conn, opt, value)   (conn)->m->set_client_option((conn), (opt), (value) TSRMLS_CC)
#define mysqlnd_set_server_option(conn, op)   (conn)->m->set_server_option((conn), (op) TSRMLS_CC)
#define mysqlnd_real_escape_string(conn, newstr, escapestr, escapestr_len)   (conn)->m->escape_string((conn), (newstr), (escapestr), (escapestr_len) TSRMLS_CC)
#define mysqlnd_escape_string(newstr, escapestr, escapestr_len)   mysqlnd_old_escape_string((newstr), (escapestr), (escapestr_len) TSRMLS_CC)
#define mysqlnd_stmt_init(conn)   (conn)->m->stmt_init((conn) TSRMLS_CC)
#define mysqlnd_stmt_store_result(stmt)   (!mysqlnd_stmt_field_count((stmt)) ? PASS:((stmt)->m->store_result((stmt) TSRMLS_CC)? PASS:FAIL))
#define mysqlnd_stmt_get_result(stmt)   (stmt)->m->get_result((stmt) TSRMLS_CC)
#define mysqlnd_stmt_more_results(stmt)   (stmt)->m->more_results((stmt) TSRMLS_CC)
#define mysqlnd_stmt_next_result(stmt)   (stmt)->m->next_result((stmt) TSRMLS_CC)
#define mysqlnd_stmt_data_seek(stmt, row)   (stmt)->m->seek_data((stmt), (row) TSRMLS_CC)
#define mysqlnd_stmt_prepare(stmt, q, qlen)   (stmt)->m->prepare((stmt), (q), (qlen) TSRMLS_CC)
#define mysqlnd_stmt_execute(stmt)   (stmt)->m->execute((stmt) TSRMLS_CC)
#define mysqlnd_stmt_send_long_data(stmt, p, d, l)   (stmt)->m->send_long_data((stmt), (p), (d), (l) TSRMLS_CC)
#define mysqlnd_stmt_alloc_param_bind(stmt)   (stmt)->m->alloc_parameter_bind((stmt) TSRMLS_CC)
#define mysqlnd_stmt_free_param_bind(stmt, bind)   (stmt)->m->free_parameter_bind((stmt), (bind) TSRMLS_CC)
#define mysqlnd_stmt_bind_param(stmt, bind)   (stmt)->m->bind_parameters((stmt), (bind) TSRMLS_CC)
#define mysqlnd_stmt_bind_one_param(stmt, n, z, t)   (stmt)->m->bind_one_parameter((stmt), (n), (z), (t) TSRMLS_CC)
#define mysqlnd_stmt_refresh_bind_param(s)   (s)->m->refresh_bind_param((s) TSRMLS_CC)
#define mysqlnd_stmt_alloc_result_bind(stmt)   (stmt)->m->alloc_result_bind((stmt) TSRMLS_CC)
#define mysqlnd_stmt_free_result_bind(stmt, bind)   (stmt)->m->free_result_bind((stmt), (bind) TSRMLS_CC)
#define mysqlnd_stmt_bind_result(stmt, bind)   (stmt)->m->bind_result((stmt), (bind) TSRMLS_CC)
#define mysqlnd_stmt_bind_one_result(s, no)   (s)->m->bind_one_result((s), (no) TSRMLS_CC)
#define mysqlnd_stmt_param_metadata(stmt)   (stmt)->m->get_parameter_metadata((stmt))
#define mysqlnd_stmt_result_metadata(stmt)   (stmt)->m->get_result_metadata((stmt) TSRMLS_CC)
#define mysqlnd_stmt_free_result(stmt)   (stmt)->m->free_result((stmt) TSRMLS_CC)
#define mysqlnd_stmt_close(stmt, implicit)   (stmt)->m->dtor((stmt), (implicit) TSRMLS_CC)
#define mysqlnd_stmt_reset(stmt)   (stmt)->m->reset((stmt) TSRMLS_CC)
#define mysqlnd_stmt_attr_get(stmt, attr, value)   (stmt)->m->get_attribute((stmt), (attr), (value) TSRMLS_CC)
#define mysqlnd_stmt_attr_set(stmt, attr, value)   (stmt)->m->set_attribute((stmt), (attr), (value) TSRMLS_CC)
#define mysqlnd_stmt_fetch(stmt, fetched)   (stmt)->m->fetch((stmt), (fetched) TSRMLS_CC)
#define MYSQLND_METHOD(class, method)   php_##class##_##method##_pub
#define MYSQLND_METHOD_PRIVATE(class, method)   php_##class##_##method##_priv
#define MYSQLND_G(v)   (mysqlnd_globals.v)

Functions

PHPAPI void mysqlnd_library_init (TSRMLS_D)
PHPAPI void mysqlnd_library_end (TSRMLS_D)
PHPAPI unsigned int mysqlnd_plugin_register ()
PHPAPI unsigned int mysqlnd_plugin_count ()
PHPAPI void ** _mysqlnd_plugin_get_plugin_connection_data (const MYSQLND *conn, unsigned int plugin_id TSRMLS_DC)
PHPAPI void ** _mysqlnd_plugin_get_plugin_result_data (const MYSQLND_RES *result, unsigned int plugin_id TSRMLS_DC)
PHPAPI void ** _mysqlnd_plugin_get_plugin_stmt_data (const MYSQLND_STMT *stmt, unsigned int plugin_id TSRMLS_DC)
PHPAPI void ** _mysqlnd_plugin_get_plugin_protocol_data (const MYSQLND_PROTOCOL *protocol, unsigned int plugin_id TSRMLS_DC)
PHPAPI struct
st_mysqlnd_conn_methods
mysqlnd_conn_get_methods ()
PHPAPI void mysqlnd_conn_set_methods (struct st_mysqlnd_conn_methods *methods)
PHPAPI struct
st_mysqlnd_stmt_methods
mysqlnd_stmt_get_methods ()
PHPAPI void mysqlnd_stmt_set_methods (struct st_mysqlnd_stmt_methods *methods)
PHPAPI void mysqlnd_minfo_print_hash (zval *values)
PHPAPI const MYSQLND_CHARSETmysqlnd_find_charset_nr (unsigned int charsetno)
PHPAPI const MYSQLND_CHARSETmysqlnd_find_charset_name (const char *const charsetname)
PHPAPI MYSQLND * _mysqlnd_init (zend_bool persistent TSRMLS_DC)
PHPAPI MYSQLND * mysqlnd_connect (MYSQLND *conn, const char *host, const char *user, const char *passwd, unsigned int passwd_len, const char *db, unsigned int db_len, unsigned int port, const char *socket_or_pipe, unsigned int mysql_flags TSRMLS_DC)
PHPAPI void _mysqlnd_debug (const char *mode TSRMLS_DC)
PHPAPI enum_func_status _mysqlnd_poll (MYSQLND **r_array, MYSQLND **e_array, MYSQLND ***dont_poll, long sec, long usec, uint *desc_num TSRMLS_DC)
PHPAPI unsigned long * _mysqlnd_fetch_lengths (MYSQLND_RES *const result TSRMLS_DC)
PHPAPI const char * mysqlnd_get_client_info ()
PHPAPI unsigned int mysqlnd_get_client_version ()
PHPAPI void mysqlnd_efree_param_bind_dtor (MYSQLND_PARAM_BIND *param_bind TSRMLS_DC)
PHPAPI void mysqlnd_efree_result_bind_dtor (MYSQLND_RESULT_BIND *result_bind TSRMLS_DC)
PHPAPI void mysqlnd_free_param_bind_dtor (MYSQLND_PARAM_BIND *param_bind TSRMLS_DC)
PHPAPI void mysqlnd_free_result_bind_dtor (MYSQLND_RESULT_BIND *result_bind TSRMLS_DC)
PHPAPI const char * mysqlnd_field_type_name (enum mysqlnd_field_types field_type)
PHPAPI void mysqlnd_local_infile_default (MYSQLND *conn)
PHPAPI void mysqlnd_set_local_infile_handler (MYSQLND *const conn, const char *const funcname)
PHPAPI ulong mysqlnd_old_escape_string (char *newstr, const char *escapestr, size_t escapestr_len TSRMLS_DC)
PHPAPI void _mysqlnd_get_client_stats (zval *return_value TSRMLS_DC ZEND_FILE_LINE_DC)
PHPAPI ZEND_EXTERN_MODULE_GLOBALS (mysqlnd) PHPAPI void mysqlnd_minfo_print_hash(zval *values)

Variables

zend_bool collect_statistics
zend_bool collect_memory_statistics
char * debug
MYSQLND_DEBUG * dbg
long net_cmd_buffer_size
long net_read_buffer_size
long log_mask
long net_read_timeout
long mempool_default_size
long debug_emalloc_fail_threshold
long debug_ecalloc_fail_threshold
long debug_erealloc_fail_threshold
long debug_malloc_fail_threshold
long debug_calloc_fail_threshold
long debug_realloc_fail_threshold

Define Documentation

Definition at line 30 of file mysqlnd.h.

#define mysqlnd_affected_rows (   conn)    (conn)->m->get_affected_rows((conn) TSRMLS_CC)

Definition at line 154 of file mysqlnd.h.

#define mysqlnd_async_query (   conn,
  query_str,
  query_len 
)    (conn)->m->send_query((conn), (query_str), (query_len) TSRMLS_CC)

Definition at line 129 of file mysqlnd.h.

#define mysqlnd_autocommit (   conn,
  mode 
)    (conn)->m->set_autocommit((conn), (mode) TSRMLS_CC)

Definition at line 207 of file mysqlnd.h.

#define mysqlnd_change_user (   conn,
  user,
  passwd,
  db,
  silent 
)    (conn)->m->change_user((conn), (user), (passwd), (db), (silent) TSRMLS_CC)

Definition at line 114 of file mysqlnd.h.

#define mysqlnd_character_set_name (   conn)    (conn)->m->charset_name((conn) TSRMLS_CC)

Definition at line 149 of file mysqlnd.h.

#define mysqlnd_close (   conn,
  is_forced 
)    (conn)->m->close((conn), (is_forced) TSRMLS_CC)

Definition at line 127 of file mysqlnd.h.

#define mysqlnd_commit (   conn)    (conn)->m->tx_commit((conn) TSRMLS_CC)

Definition at line 208 of file mysqlnd.h.

#define mysqlnd_data_seek (   result,
  row 
)    (result)->m.seek_data((result), (row) TSRMLS_CC)

Definition at line 141 of file mysqlnd.h.

#define MYSQLND_DBG_ENABLED   0

Definition at line 51 of file mysqlnd.h.

#define mysqlnd_debug (   x)    _mysqlnd_debug((x) TSRMLS_CC)

Definition at line 116 of file mysqlnd.h.

#define mysqlnd_dump_debug_info (   conn)    (conn)->m->server_dump_debug_information((conn) TSRMLS_CC)

Definition at line 219 of file mysqlnd.h.

#define mysqlnd_end_psession (   conn)    (conn)->m->end_psession((conn) TSRMLS_CC)

Definition at line 94 of file mysqlnd.h.

#define mysqlnd_errno (   conn)    (conn)->m->get_error_no((conn) TSRMLS_CC)

Definition at line 144 of file mysqlnd.h.

#define mysqlnd_error (   conn)    (conn)->m->get_error_str((conn) TSRMLS_CC)

Definition at line 145 of file mysqlnd.h.

#define mysqlnd_escape_string (   newstr,
  escapestr,
  escapestr_len 
)    mysqlnd_old_escape_string((newstr), (escapestr), (escapestr_len) TSRMLS_CC)

Definition at line 234 of file mysqlnd.h.

#define mysqlnd_fetch_all (   result,
  flags,
  return_value 
)    (result)->m.fetch_all((result), (flags), (return_value) TSRMLS_CC ZEND_FILE_LINE_CC)

Definition at line 122 of file mysqlnd.h.

#define mysqlnd_fetch_field (   result)    (result)->m.fetch_field((result) TSRMLS_CC)

Definition at line 170 of file mysqlnd.h.

#define mysqlnd_fetch_field_direct (   result,
  fnr 
)    (result)->m.fetch_field_direct((result), (fnr) TSRMLS_CC)

Definition at line 171 of file mysqlnd.h.

#define mysqlnd_fetch_fields (   result)    (result)->m.fetch_fields((result) TSRMLS_CC)

Definition at line 172 of file mysqlnd.h.

#define mysqlnd_fetch_into (   result,
  flags,
  ret_val,
  ext 
)    (result)->m.fetch_into((result), (flags), (ret_val), (ext) TSRMLS_CC ZEND_FILE_LINE_CC)

Definition at line 120 of file mysqlnd.h.

#define mysqlnd_fetch_lengths (   result)    _mysqlnd_fetch_lengths((result) TSRMLS_CC)

Definition at line 165 of file mysqlnd.h.

#define mysqlnd_fetch_row_c (   result)    (result)->m.fetch_row_c((result) TSRMLS_CC)

Definition at line 121 of file mysqlnd.h.

#define mysqlnd_field_count (   conn)    (conn)->m->get_field_count((conn) TSRMLS_CC)

Definition at line 152 of file mysqlnd.h.

#define mysqlnd_field_seek (   result,
  ofs 
)    (result)->m.seek_field((result), (ofs) TSRMLS_CC)

Definition at line 168 of file mysqlnd.h.

#define mysqlnd_field_tell (   result)    (result)->m.field_tell((result) TSRMLS_CC)

Definition at line 169 of file mysqlnd.h.

#define mysqlnd_free_result (   r,
  e_or_i 
)    ((MYSQLND_RES*)r)->m.free_result(((MYSQLND_RES*)(r)), (e_or_i) TSRMLS_CC)

Definition at line 140 of file mysqlnd.h.

#define MYSQLND_G (   v)    (mysqlnd_globals.v)

Definition at line 125 of file mysqlnd.h.

#define mysqlnd_get_connection_stats (   conn,
  values 
)    (conn)->m->get_statistics((conn), (values) TSRMLS_CC ZEND_FILE_LINE_CC)

Definition at line 124 of file mysqlnd.h.

#define mysqlnd_get_host_info (   conn)    (conn)->m->get_host_information((conn) TSRMLS_CC)

Definition at line 158 of file mysqlnd.h.

#define mysqlnd_get_proto_info (   conn)    (conn)->m->get_protocol_information((conn) TSRMLS_CC)

Definition at line 159 of file mysqlnd.h.

#define mysqlnd_get_server_info (   conn)    (conn)->m->get_server_information((conn) TSRMLS_CC)

Definition at line 157 of file mysqlnd.h.

#define mysqlnd_get_server_version (   conn)    (conn)->m->get_server_version((conn) TSRMLS_CC)

Definition at line 225 of file mysqlnd.h.

#define mysqlnd_info (   conn)    (conn)->m->get_last_message((conn) TSRMLS_CC)

Definition at line 156 of file mysqlnd.h.

#define mysqlnd_init (   persistent)    _mysqlnd_init((persistent) TSRMLS_CC)

Definition at line 103 of file mysqlnd.h.

#define mysqlnd_insert_id (   conn)    (conn)->m->get_last_insert_id((conn) TSRMLS_CC)

Definition at line 153 of file mysqlnd.h.

#define mysqlnd_kill (   conn,
  pid 
)    (conn)->m->kill_connection((conn), (pid) TSRMLS_CC)

Definition at line 222 of file mysqlnd.h.

#define mysqlnd_list_dbs (   conn,
  wild 
)    (conn)->m->list_method((conn), wild? "SHOW DATABASES LIKE %s":"SHOW DATABASES", (wild), NULL TSRMLS_CC)

Definition at line 215 of file mysqlnd.h.

#define mysqlnd_list_fields (   conn,
  tab,
  wild 
)    (conn)->m->list_fields((conn), (tab), (wild) TSRMLS_CC)

Definition at line 216 of file mysqlnd.h.

#define mysqlnd_list_processes (   conn)    (conn)->m->list_method((conn), "SHOW PROCESSLIST", NULL, NULL TSRMLS_CC)

Definition at line 217 of file mysqlnd.h.

#define mysqlnd_list_tables (   conn,
  wild 
)    (conn)->m->list_method((conn), wild? "SHOW TABLES LIKE %s":"SHOW TABLES", (wild), NULL TSRMLS_CC)

Definition at line 218 of file mysqlnd.h.

#define MYSQLND_METHOD (   class,
  method 
)    php_##class##_##method##_pub

Definition at line 277 of file mysqlnd.h.

#define MYSQLND_METHOD_PRIVATE (   class,
  method 
)    php_##class##_##method##_priv

Definition at line 278 of file mysqlnd.h.

#define mysqlnd_more_results (   conn)    (conn)->m->more_results((conn) TSRMLS_CC)

Definition at line 139 of file mysqlnd.h.

#define mysqlnd_next_result (   conn)    (conn)->m->next_result((conn) TSRMLS_CC)

Definition at line 138 of file mysqlnd.h.

#define mysqlnd_num_fields (   result)    (result)->m.num_fields((result) TSRMLS_CC)

Definition at line 163 of file mysqlnd.h.

#define mysqlnd_num_rows (   result)    (result)->m.num_rows((result) TSRMLS_CC)

Definition at line 162 of file mysqlnd.h.

#define mysqlnd_options (   conn,
  opt,
  value 
)    (conn)->m->set_client_option((conn), (opt), (value) TSRMLS_CC)

Definition at line 228 of file mysqlnd.h.

#define mysqlnd_ping (   conn)    (conn)->m->ping((conn) TSRMLS_CC)

Definition at line 221 of file mysqlnd.h.

Definition at line 74 of file mysqlnd.h.

Definition at line 83 of file mysqlnd.h.

Definition at line 77 of file mysqlnd.h.

Definition at line 80 of file mysqlnd.h.

#define mysqlnd_poll (   r,
  err,
  d_pull,
  sec,
  usec,
  desc_num 
)    _mysqlnd_poll((r), (err), (d_pull), (sec), (usec), (desc_num) TSRMLS_CC)

Definition at line 130 of file mysqlnd.h.

#define mysqlnd_query (   conn,
  query_str,
  query_len 
)    (conn)->m->query((conn), (query_str), (query_len) TSRMLS_CC)

Definition at line 128 of file mysqlnd.h.

#define mysqlnd_real_escape_string (   conn,
  newstr,
  escapestr,
  escapestr_len 
)    (conn)->m->escape_string((conn), (newstr), (escapestr), (escapestr_len) TSRMLS_CC)

Definition at line 232 of file mysqlnd.h.

#define mysqlnd_reap_async_query (   conn)    (conn)->m->reap_query((conn) TSRMLS_CC)

Definition at line 131 of file mysqlnd.h.

#define mysqlnd_refresh (   conn,
  options 
)    (conn)->m->refresh_server((conn), (options) TSRMLS_CC)

Definition at line 223 of file mysqlnd.h.

#define mysqlnd_restart_psession (   conn)    (conn)->m->restart_psession((conn) TSRMLS_CC)

Definition at line 93 of file mysqlnd.h.

#define mysqlnd_result_fetch_field_data (   res,
  offset,
  ret 
)    (res)->m.fetch_field_data((res), (offset), (ret) TSRMLS_CC)

Definition at line 123 of file mysqlnd.h.

#define mysqlnd_rollback (   conn)    (conn)->m->tx_rollback((conn) TSRMLS_CC)

Definition at line 209 of file mysqlnd.h.

#define mysqlnd_select_db (   conn,
  db,
  db_len 
)    (conn)->m->select_db((conn), (db), (db_len) TSRMLS_CC)

Definition at line 220 of file mysqlnd.h.

#define mysqlnd_set_character_set (   conn,
  cs 
)    (conn)->m->set_charset((conn), (cs) TSRMLS_CC)

Definition at line 226 of file mysqlnd.h.

#define mysqlnd_set_server_option (   conn,
  op 
)    (conn)->m->set_server_option((conn), (op) TSRMLS_CC)

Definition at line 229 of file mysqlnd.h.

#define mysqlnd_shutdown (   conn,
  level 
)    (conn)->m->shutdown_server((conn), (level) TSRMLS_CC)

Definition at line 224 of file mysqlnd.h.

#define mysqlnd_sqlstate (   conn)    (conn)->m->get_sqlstate((conn) TSRMLS_CC)

Definition at line 146 of file mysqlnd.h.

#define mysqlnd_ssl_set (   conn,
  key,
  cert,
  ca,
  capath,
  cipher 
)    (conn)->m->ssl_set((conn), (key), (cert), (ca), (capath), (cipher) TSRMLS_CC)

Definition at line 178 of file mysqlnd.h.

#define mysqlnd_stat (   conn,
  msg,
  msg_len 
)    (conn)->m->get_server_statistics((conn), (msg), (msg_len) TSRMLS_CC)

Definition at line 227 of file mysqlnd.h.

#define mysqlnd_stmt_affected_rows (   stmt)    (stmt)->m->get_affected_rows((stmt) TSRMLS_CC)

Definition at line 182 of file mysqlnd.h.

#define mysqlnd_stmt_alloc_param_bind (   stmt)    (stmt)->m->alloc_parameter_bind((stmt) TSRMLS_CC)

Definition at line 250 of file mysqlnd.h.

#define mysqlnd_stmt_alloc_result_bind (   stmt)    (stmt)->m->alloc_result_bind((stmt) TSRMLS_CC)

Definition at line 255 of file mysqlnd.h.

#define mysqlnd_stmt_attr_get (   stmt,
  attr,
  value 
)    (stmt)->m->get_attribute((stmt), (attr), (value) TSRMLS_CC)

Definition at line 267 of file mysqlnd.h.

#define mysqlnd_stmt_attr_set (   stmt,
  attr,
  value 
)    (stmt)->m->set_attribute((stmt), (attr), (value) TSRMLS_CC)

Definition at line 268 of file mysqlnd.h.

#define mysqlnd_stmt_bind_one_param (   stmt,
  n,
  z,
 
)    (stmt)->m->bind_one_parameter((stmt), (n), (z), (t) TSRMLS_CC)

Definition at line 253 of file mysqlnd.h.

#define mysqlnd_stmt_bind_one_result (   s,
  no 
)    (s)->m->bind_one_result((s), (no) TSRMLS_CC)

Definition at line 258 of file mysqlnd.h.

#define mysqlnd_stmt_bind_param (   stmt,
  bind 
)    (stmt)->m->bind_parameters((stmt), (bind) TSRMLS_CC)

Definition at line 252 of file mysqlnd.h.

#define mysqlnd_stmt_bind_result (   stmt,
  bind 
)    (stmt)->m->bind_result((stmt), (bind) TSRMLS_CC)

Definition at line 257 of file mysqlnd.h.

#define mysqlnd_stmt_close (   stmt,
  implicit 
)    (stmt)->m->dtor((stmt), (implicit) TSRMLS_CC)

Definition at line 263 of file mysqlnd.h.

#define mysqlnd_stmt_data_seek (   stmt,
  row 
)    (stmt)->m->seek_data((stmt), (row) TSRMLS_CC)

Definition at line 246 of file mysqlnd.h.

#define mysqlnd_stmt_errno (   stmt)    (stmt)->m->get_error_no((stmt) TSRMLS_CC)

Definition at line 188 of file mysqlnd.h.

#define mysqlnd_stmt_error (   stmt)    (stmt)->m->get_error_str((stmt) TSRMLS_CC)

Definition at line 189 of file mysqlnd.h.

#define mysqlnd_stmt_execute (   stmt)    (stmt)->m->execute((stmt) TSRMLS_CC)

Definition at line 248 of file mysqlnd.h.

#define mysqlnd_stmt_fetch (   stmt,
  fetched 
)    (stmt)->m->fetch((stmt), (fetched) TSRMLS_CC)

Definition at line 270 of file mysqlnd.h.

#define mysqlnd_stmt_field_count (   stmt)    (stmt)->m->get_field_count((stmt) TSRMLS_CC)

Definition at line 185 of file mysqlnd.h.

#define mysqlnd_stmt_free_param_bind (   stmt,
  bind 
)    (stmt)->m->free_parameter_bind((stmt), (bind) TSRMLS_CC)

Definition at line 251 of file mysqlnd.h.

#define mysqlnd_stmt_free_result (   stmt)    (stmt)->m->free_result((stmt) TSRMLS_CC)

Definition at line 262 of file mysqlnd.h.

#define mysqlnd_stmt_free_result_bind (   stmt,
  bind 
)    (stmt)->m->free_result_bind((stmt), (bind) TSRMLS_CC)

Definition at line 256 of file mysqlnd.h.

#define mysqlnd_stmt_get_result (   stmt)    (stmt)->m->get_result((stmt) TSRMLS_CC)

Definition at line 243 of file mysqlnd.h.

#define mysqlnd_stmt_init (   conn)    (conn)->m->stmt_init((conn) TSRMLS_CC)

Definition at line 241 of file mysqlnd.h.

#define mysqlnd_stmt_insert_id (   stmt)    (stmt)->m->get_last_insert_id((stmt) TSRMLS_CC)

Definition at line 181 of file mysqlnd.h.

#define mysqlnd_stmt_more_results (   stmt)    (stmt)->m->more_results((stmt) TSRMLS_CC)

Definition at line 244 of file mysqlnd.h.

#define mysqlnd_stmt_next_result (   stmt)    (stmt)->m->next_result((stmt) TSRMLS_CC)

Definition at line 245 of file mysqlnd.h.

#define mysqlnd_stmt_num_rows (   stmt)    (stmt)->m->get_num_rows((stmt) TSRMLS_CC)

Definition at line 183 of file mysqlnd.h.

#define mysqlnd_stmt_param_count (   stmt)    (stmt)->m->get_param_count((stmt) TSRMLS_CC)

Definition at line 184 of file mysqlnd.h.

#define mysqlnd_stmt_param_metadata (   stmt)    (stmt)->m->get_parameter_metadata((stmt))

Definition at line 259 of file mysqlnd.h.

#define mysqlnd_stmt_prepare (   stmt,
  q,
  qlen 
)    (stmt)->m->prepare((stmt), (q), (qlen) TSRMLS_CC)

Definition at line 247 of file mysqlnd.h.

#define mysqlnd_stmt_refresh_bind_param (   s)    (s)->m->refresh_bind_param((s) TSRMLS_CC)

Definition at line 254 of file mysqlnd.h.

#define mysqlnd_stmt_reset (   stmt)    (stmt)->m->reset((stmt) TSRMLS_CC)

Definition at line 264 of file mysqlnd.h.

#define mysqlnd_stmt_result_metadata (   stmt)    (stmt)->m->get_result_metadata((stmt) TSRMLS_CC)

Definition at line 260 of file mysqlnd.h.

#define mysqlnd_stmt_send_long_data (   stmt,
  p,
  d,
  l 
)    (stmt)->m->send_long_data((stmt), (p), (d), (l) TSRMLS_CC)

Definition at line 249 of file mysqlnd.h.

#define mysqlnd_stmt_server_status (   stmt)    (stmt)->m->get_server_status((stmt) TSRMLS_CC)

Definition at line 187 of file mysqlnd.h.

#define mysqlnd_stmt_sqlstate (   stmt)    (stmt)->m->get_sqlstate((stmt) TSRMLS_CC)

Definition at line 190 of file mysqlnd.h.

#define mysqlnd_stmt_store_result (   stmt)    (!mysqlnd_stmt_field_count((stmt)) ? PASS:((stmt)->m->store_result((stmt) TSRMLS_CC)? PASS:FAIL))

Definition at line 242 of file mysqlnd.h.

#define mysqlnd_stmt_warning_count (   stmt)    (stmt)->m->get_warning_count((stmt) TSRMLS_CC)

Definition at line 186 of file mysqlnd.h.

#define mysqlnd_store_result (   conn)    (conn)->m->store_result((conn) TSRMLS_CC)

Definition at line 137 of file mysqlnd.h.

Definition at line 32 of file mysqlnd.h.

#define mysqlnd_thread_id (   conn)    (conn)->m->get_thread_id((conn) TSRMLS_CC)

Definition at line 160 of file mysqlnd.h.

#define mysqlnd_thread_safe ( )    TRUE

Definition at line 96 of file mysqlnd.h.

#define mysqlnd_unbuffered_skip_result (   result)    (result)->m.skip_result((result) TSRMLS_CC)

Definition at line 132 of file mysqlnd.h.

#define MYSQLND_USE_OPTIMISATIONS   0

Definition at line 29 of file mysqlnd.h.

#define mysqlnd_use_result (   conn)    (conn)->m->use_result((conn) TSRMLS_CC)

Definition at line 136 of file mysqlnd.h.

#define MYSQLND_VERSION   "mysqlnd 5.0.8-dev - 20102224 - $Revision: 321634 $"

Definition at line 25 of file mysqlnd.h.

#define MYSQLND_VERSION_ID   50008

Definition at line 26 of file mysqlnd.h.

#define mysqlnd_warning_count (   conn)    (conn)->m->get_warning_count((conn) TSRMLS_CC)

Definition at line 155 of file mysqlnd.h.


Function Documentation

PHPAPI void _mysqlnd_debug ( const char *mode  TSRMLS_DC)

Definition at line 784 of file mysqlnd_debug.c.

{
#ifdef PHP_DEBUG
       MYSQLND_DEBUG *dbg = MYSQLND_G(dbg);
       if (!dbg) {
              MYSQLND_G(dbg) = dbg = mysqlnd_debug_init(mysqlnd_debug_std_no_trace_funcs TSRMLS_CC);
              if (!dbg) {
                     return;
              }
       }

       dbg->m->close(dbg);
       dbg->m->set_mode(dbg, mode);
       while (zend_stack_count(&dbg->call_stack)) {
              zend_stack_del_top(&dbg->call_stack);
       }
       while (zend_stack_count(&dbg->call_time_stack)) {
              zend_stack_del_top(&dbg->call_time_stack);
       }
#endif
}

Here is the call graph for this function:

PHPAPI unsigned long* _mysqlnd_fetch_lengths ( MYSQLND_RES *const result  TSRMLS_DC)

Definition at line 626 of file mysqlnd_result.c.

{
       return result->m.fetch_lengths? result->m.fetch_lengths(result TSRMLS_CC) : NULL;
}
PHPAPI void _mysqlnd_get_client_stats ( zval *return_value TSRMLS_DC  ZEND_FILE_LINE_DC)

Definition at line 231 of file mysqlnd_statistics.c.

{
       MYSQLND_STATS stats, *stats_ptr = mysqlnd_global_stats;
       DBG_ENTER("_mysqlnd_get_client_stats");
       if (!stats_ptr) {
              memset(&stats, 0, sizeof(stats));
              stats_ptr = &stats;
       }
       mysqlnd_fill_stats_hash(stats_ptr, mysqlnd_stats_values_names, return_value TSRMLS_CC ZEND_FILE_LINE_CC);
       DBG_VOID_RETURN;
}

Here is the call graph for this function:

PHPAPI MYSQLND* _mysqlnd_init ( zend_bool persistent  TSRMLS_DC)

Definition at line 2356 of file mysqlnd.c.

{
       size_t alloc_size = sizeof(MYSQLND) + mysqlnd_plugin_count() * sizeof(void *);
       MYSQLND *ret;

       DBG_ENTER("mysqlnd_init");
       DBG_INF_FMT("persistent=%u", persistent);
       ret = mnd_pecalloc(1, alloc_size, persistent);
       if (!ret) {
              DBG_RETURN(NULL);
       }

       ret->persistent = persistent;
       ret->m = mysqlnd_conn_methods;
       CONN_SET_STATE(ret, CONN_ALLOCED);
       ret->m->get_reference(ret TSRMLS_CC);

       if (PASS != ret->m->init(ret TSRMLS_CC)) {
              ret->m->dtor(ret TSRMLS_CC);
              ret = NULL;
       }

       DBG_RETURN(ret);
}

Here is the call graph for this function:

PHPAPI void** _mysqlnd_plugin_get_plugin_connection_data ( const MYSQLND *  conn,
unsigned int plugin_id  TSRMLS_DC 
)

Definition at line 2430 of file mysqlnd.c.

{
       DBG_ENTER("_mysqlnd_plugin_get_plugin_connection_data");
       DBG_INF_FMT("plugin_id=%u", plugin_id);
       if (!conn || plugin_id >= mysqlnd_plugin_count()) {
              return NULL;
       }
       DBG_RETURN((void *)((char *)conn + sizeof(MYSQLND) + plugin_id * sizeof(void *)));
}

Here is the call graph for this function:

PHPAPI void** _mysqlnd_plugin_get_plugin_protocol_data ( const MYSQLND_PROTOCOL *  protocol,
unsigned int plugin_id  TSRMLS_DC 
)

Definition at line 2128 of file mysqlnd_wireprotocol.c.

{
       DBG_ENTER("_mysqlnd_plugin_get_plugin_protocol_data");
       DBG_INF_FMT("plugin_id=%u", plugin_id);
       if (!protocol || plugin_id >= mysqlnd_plugin_count()) {
              return NULL;
       }
       DBG_RETURN((void *)((char *)protocol + sizeof(MYSQLND_PROTOCOL) + plugin_id * sizeof(void *)));
}

Here is the call graph for this function:

PHPAPI void** _mysqlnd_plugin_get_plugin_result_data ( const MYSQLND_RES *  result,
unsigned int plugin_id  TSRMLS_DC 
)

Definition at line 1736 of file mysqlnd_result.c.

{
       DBG_ENTER("_mysqlnd_plugin_get_plugin_result_data");
       DBG_INF_FMT("plugin_id=%u", plugin_id);
       if (!result || plugin_id >= mysqlnd_plugin_count()) {
              return NULL;
       }
       DBG_RETURN((void *)((char *)result + sizeof(MYSQLND_RES) + plugin_id * sizeof(void *)));
}

Here is the call graph for this function:

PHPAPI void** _mysqlnd_plugin_get_plugin_stmt_data ( const MYSQLND_STMT *  stmt,
unsigned int plugin_id  TSRMLS_DC 
)

Definition at line 2404 of file mysqlnd_ps.c.

{
       DBG_ENTER("_mysqlnd_plugin_get_plugin_stmt_data");
       DBG_INF_FMT("plugin_id=%u", plugin_id);
       if (!stmt || plugin_id >= mysqlnd_plugin_count()) {
              return NULL;
       }
       DBG_RETURN((void *)((char *)stmt + sizeof(MYSQLND_STMT) + plugin_id * sizeof(void *)));
}

Here is the call graph for this function:

PHPAPI enum_func_status _mysqlnd_poll ( MYSQLND **  r_array,
MYSQLND **  e_array,
MYSQLND ***  dont_poll,
long  sec,
long  usec,
uint *desc_num  TSRMLS_DC 
)

Definition at line 1194 of file mysqlnd.c.

{

       struct timeval       tv;
       struct timeval *tv_p = NULL;
       fd_set               rfds, wfds, efds;
       php_socket_t  max_fd = 0;
       int                         retval, sets = 0;
       int                         set_count, max_set_count = 0;
       DBG_ENTER("mysqlnd_poll");

       if (sec < 0 || usec < 0) {
              php_error_docref(NULL TSRMLS_CC, E_WARNING, "Negative values passed for sec and/or usec");
              DBG_RETURN(FAIL);
       }

       *dont_poll = mysqlnd_stream_array_check_for_readiness(r_array TSRMLS_CC);

       FD_ZERO(&rfds);
       FD_ZERO(&wfds);
       FD_ZERO(&efds);

       if (r_array != NULL) {
              set_count = mysqlnd_stream_array_to_fd_set(r_array, &rfds, &max_fd TSRMLS_CC);
              if (set_count > max_set_count) {
                     max_set_count = set_count;
              }
              sets += set_count;
       }

       if (e_array != NULL) {
              set_count = mysqlnd_stream_array_to_fd_set(e_array, &efds, &max_fd TSRMLS_CC);
              if (set_count > max_set_count) {
                     max_set_count = set_count;
              }
              sets += set_count;
       }

       if (!sets) {
              php_error_docref(NULL TSRMLS_CC, E_WARNING, *dont_poll ? "All arrays passed are clear":"No stream arrays were passed");
              DBG_ERR_FMT(*dont_poll ? "All arrays passed are clear":"No stream arrays were passed");
              DBG_RETURN(FAIL);
       }

       PHP_SAFE_MAX_FD(max_fd, max_set_count);

       /* Solaris + BSD do not like microsecond values which are >= 1 sec */
       if (usec > 999999) {
              tv.tv_sec = sec + (usec / 1000000);
              tv.tv_usec = usec % 1000000;
       } else {
              tv.tv_sec = sec;
              tv.tv_usec = usec;
       }

       tv_p = &tv;

       retval = php_select(max_fd + 1, &rfds, &wfds, &efds, tv_p);

       if (retval == -1) {
              php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to select [%d]: %s (max_fd=%d)",
                                          errno, strerror(errno), max_fd);
              DBG_RETURN(FAIL);
       }

       if (r_array != NULL) {
              mysqlnd_stream_array_from_fd_set(r_array, &rfds TSRMLS_CC);
       }
       if (e_array != NULL) {
              mysqlnd_stream_array_from_fd_set(e_array, &efds TSRMLS_CC);
       }

       *desc_num = retval;

       DBG_RETURN(PASS);
}

Here is the call graph for this function:

Definition at line 2397 of file mysqlnd.c.

Definition at line 2404 of file mysqlnd.c.

{
       mysqlnd_conn_methods = methods;
}
PHPAPI MYSQLND* mysqlnd_connect ( MYSQLND *  conn,
const char *  host,
const char *  user,
const char *  passwd,
unsigned int  passwd_len,
const char *  db,
unsigned int  db_len,
unsigned int  port,
const char *  socket_or_pipe,
unsigned int mysql_flags  TSRMLS_DC 
)

Definition at line 849 of file mysqlnd.c.

{
       enum_func_status ret = FAIL;
       zend_bool self_alloced = FALSE;

       DBG_ENTER("mysqlnd_connect");
       DBG_INF_FMT("host=%s user=%s db=%s port=%u flags=%u", host?host:"", user?user:"", db?db:"", port, mysql_flags);

       if (!conn) {
              self_alloced = TRUE;
              if (!(conn = mysqlnd_init(FALSE))) {
                     /* OOM */
                     DBG_RETURN(NULL);
              }
       }

       ret = conn->m->connect(conn, host, user, passwd, passwd_len, db, db_len, port, socket_or_pipe, mysql_flags TSRMLS_CC);

       if (ret == FAIL) {
              if (self_alloced) {
                     /*
                       We have alloced, thus there are no references to this
                       object - we are free to kill it!
                     */
                     conn->m->dtor(conn TSRMLS_CC);
              }
              DBG_RETURN(NULL);
       }
       DBG_RETURN(conn);
}

Here is the call graph for this function:

Here is the caller graph for this function:

PHPAPI void mysqlnd_efree_param_bind_dtor ( MYSQLND_PARAM_BIND *param_bind  TSRMLS_DC)
PHPAPI void mysqlnd_efree_result_bind_dtor ( MYSQLND_RESULT_BIND *result_bind  TSRMLS_DC)
PHPAPI const char* mysqlnd_field_type_name ( enum mysqlnd_field_types  field_type)

Definition at line 1960 of file mysqlnd.c.

{
       switch(field_type) {
              case FIELD_TYPE_STRING:
              case FIELD_TYPE_VAR_STRING:
                     return "string";
              case FIELD_TYPE_TINY:
              case FIELD_TYPE_SHORT:
              case FIELD_TYPE_LONG:
              case FIELD_TYPE_LONGLONG:
              case FIELD_TYPE_INT24:
                     return "int";
              case FIELD_TYPE_FLOAT:
              case FIELD_TYPE_DOUBLE:
              case FIELD_TYPE_DECIMAL:
              case FIELD_TYPE_NEWDECIMAL:
                     return "real";
              case FIELD_TYPE_TIMESTAMP:
                     return "timestamp";
              case FIELD_TYPE_YEAR:
                     return "year";
              case FIELD_TYPE_DATE:
              case FIELD_TYPE_NEWDATE:
                     return "date";
              case FIELD_TYPE_TIME:
                     return "time";
              case FIELD_TYPE_SET:
                     return "set";
              case FIELD_TYPE_ENUM:
                     return "enum";
              case FIELD_TYPE_GEOMETRY:
                     return "geometry";
              case FIELD_TYPE_DATETIME:
                     return "datetime";
              case FIELD_TYPE_TINY_BLOB:
              case FIELD_TYPE_MEDIUM_BLOB:
              case FIELD_TYPE_LONG_BLOB:
              case FIELD_TYPE_BLOB:
                     return "blob";
              case FIELD_TYPE_NULL:
                     return "null";
              case FIELD_TYPE_BIT:
                     return "bit";
              default:
                     return "unknown";
       }
}
PHPAPI const MYSQLND_CHARSET* mysqlnd_find_charset_name ( const char *const  charsetname)

Definition at line 632 of file mysqlnd_charset.c.

{
       const MYSQLND_CHARSET *c = mysqlnd_charsets;

       do {
              if (!strcasecmp(c->name, name)) {
                     return c;
              }
              ++c;
       } while (c[0].nr != 0);
       return NULL;
}

Here is the caller graph for this function:

PHPAPI const MYSQLND_CHARSET* mysqlnd_find_charset_nr ( unsigned int  charsetno)

Definition at line 616 of file mysqlnd_charset.c.

{
       const MYSQLND_CHARSET * c = mysqlnd_charsets;

       do {
              if (c->nr == charsetnr) {
                     return c;
              }
              ++c;
       } while (c[0].nr != 0);
       return NULL;
}

Here is the caller graph for this function:

PHPAPI void mysqlnd_free_param_bind_dtor ( MYSQLND_PARAM_BIND *param_bind  TSRMLS_DC)
PHPAPI void mysqlnd_free_result_bind_dtor ( MYSQLND_RESULT_BIND *result_bind  TSRMLS_DC)

Definition at line 1825 of file mysqlnd.c.

{
       return MYSQLND_VERSION;
}

Here is the caller graph for this function:

Definition at line 1833 of file mysqlnd.c.

{
       return MYSQLND_VERSION_ID;
}

Definition at line 72 of file mysqlnd.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 2384 of file mysqlnd.c.

Here is the call graph for this function:

Here is the caller graph for this function:

PHPAPI void mysqlnd_local_infile_default ( MYSQLND *  conn)

Definition at line 147 of file mysqlnd_loaddata.c.

{
       conn->infile.local_infile_init = mysqlnd_local_infile_init;
       conn->infile.local_infile_read = mysqlnd_local_infile_read;
       conn->infile.local_infile_error = mysqlnd_local_infile_error;
       conn->infile.local_infile_end = mysqlnd_local_infile_end;
}

Here is the call graph for this function:

Here is the caller graph for this function:

PHPAPI void mysqlnd_minfo_print_hash ( zval *  values)

Definition at line 72 of file php_mysqlnd.c.

{
       zval **values_entry;
       HashPosition pos_values;

       zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(values), &pos_values);
       while (zend_hash_get_current_data_ex(Z_ARRVAL_P(values), (void **)&values_entry, &pos_values) == SUCCESS) {
              char   *string_key;
              uint   string_key_len;
              ulong  num_key;

              zend_hash_get_current_key_ex(Z_ARRVAL_P(values), &string_key, &string_key_len, &num_key, 0, &pos_values);

              convert_to_string(*values_entry);
              php_info_print_table_row(2, string_key, Z_STRVAL_PP(values_entry));

              zend_hash_move_forward_ex(Z_ARRVAL_P(values), &pos_values);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

PHPAPI ulong mysqlnd_old_escape_string ( char *  newstr,
const char *  escapestr,
size_t escapestr_len  TSRMLS_DC 
)

Definition at line 1407 of file mysqlnd.c.

{
       DBG_ENTER("mysqlnd_old_escape_string");
       DBG_RETURN(mysqlnd_cset_escape_slashes(mysqlnd_find_charset_name("latin1"), newstr, escapestr, escapestr_len TSRMLS_CC));
}

Here is the call graph for this function:

Definition at line 2422 of file mysqlnd.c.

Here is the caller graph for this function:

Definition at line 2414 of file mysqlnd.c.

PHPAPI void mysqlnd_set_local_infile_handler ( MYSQLND *const  conn,
const char *const  funcname 
)

Definition at line 157 of file mysqlnd_loaddata.c.

{
       if (!conn->infile.callback) {
              MAKE_STD_ZVAL(conn->infile.callback);
       } else {
              zval_dtor(conn->infile.callback);
       }
       ZVAL_STRING(conn->infile.callback, (char*) funcname, 1);
}

Definition at line 2426 of file mysqlnd_ps.c.

Definition at line 2434 of file mysqlnd_ps.c.

{
       mysqlnd_stmt_methods = methods;
}

Variable Documentation

Definition at line 282 of file mysqlnd.h.

Definition at line 281 of file mysqlnd.h.

MYSQLND_DEBUG* dbg

Definition at line 284 of file mysqlnd.h.

char* debug

Definition at line 283 of file mysqlnd.h.

Definition at line 294 of file mysqlnd.h.

Definition at line 291 of file mysqlnd.h.

Definition at line 290 of file mysqlnd.h.

Definition at line 292 of file mysqlnd.h.

Definition at line 293 of file mysqlnd.h.

Definition at line 295 of file mysqlnd.h.

long log_mask

Definition at line 287 of file mysqlnd.h.

Definition at line 289 of file mysqlnd.h.

Definition at line 285 of file mysqlnd.h.

Definition at line 286 of file mysqlnd.h.

Definition at line 288 of file mysqlnd.h.