version 1.1, 2012/02/21 23:47:58
|
version 1.1.1.4, 2014/06/15 20:03:52
|
Line 2
|
Line 2
|
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | |
| PHP Version 5 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 2006-2012 The PHP Group | | | Copyright (c) 2006-2014 The PHP Group | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| This source file is subject to version 3.01 of the PHP license, | |
| This source file is subject to version 3.01 of the PHP license, | |
| that is bundled with this package in the file LICENSE, and is | |
| that is bundled with this package in the file LICENSE, and is | |
Line 12
|
Line 12
|
| obtain it through the world-wide-web, please send a note to | |
| obtain it through the world-wide-web, please send a note to | |
| license@php.net so we can mail you a copy immediately. | |
| license@php.net so we can mail you a copy immediately. | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Authors: Georg Richter <georg@mysql.com> | | | Authors: Andrey Hristov <andrey@mysql.com> | |
| Andrey Hristov <andrey@mysql.com> | | |
| Ulf Wendel <uwendel@mysql.com> | |
| Ulf Wendel <uwendel@mysql.com> | |
|
| Georg Richter <georg@mysql.com> | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
*/ |
*/ |
/* $Id$ */ |
/* $Id$ */ |
Line 22
|
Line 22
|
#ifndef MYSQLND_H |
#ifndef MYSQLND_H |
#define MYSQLND_H |
#define MYSQLND_H |
|
|
#define MYSQLND_VERSION "mysqlnd 5.0.8-dev - 20102224 - $Revision$" | #define MYSQLND_VERSION "mysqlnd 5.0.10 - 20111026 - $Id$" |
#define MYSQLND_VERSION_ID 50008 | #define MYSQLND_VERSION_ID 50010 |
|
|
/* This forces inlining of some accessor functions */ | #define MYSQLND_PLUGIN_API_VERSION 1 |
#define MYSQLND_USE_OPTIMISATIONS 0 | |
#define AUTOCOMMIT_TX_COMMIT_ROLLBACK | |
|
|
#define MYSQLND_STRING_TO_INT_CONVERSION |
#define MYSQLND_STRING_TO_INT_CONVERSION |
/* |
/* |
Line 69 PHPAPI void mysqlnd_library_init(TSRMLS_D);
|
Line 67 PHPAPI void mysqlnd_library_init(TSRMLS_D);
|
PHPAPI void mysqlnd_library_end(TSRMLS_D); |
PHPAPI void mysqlnd_library_end(TSRMLS_D); |
|
|
PHPAPI unsigned int mysqlnd_plugin_register(); |
PHPAPI unsigned int mysqlnd_plugin_register(); |
|
PHPAPI unsigned int mysqlnd_plugin_register_ex(struct st_mysqlnd_plugin_header * plugin TSRMLS_DC); |
PHPAPI unsigned int mysqlnd_plugin_count(); |
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_find(const char * const name TSRMLS_DC); |
#define mysqlnd_plugin_get_plugin_connection_data(c, p_id) _mysqlnd_plugin_get_plugin_connection_data((c), (p_id) TSRMLS_CC) | #define mysqlnd_plugin_find(name) _mysqlnd_plugin_find((name) TSRMLS_CC); |
|
|
PHPAPI void ** _mysqlnd_plugin_get_plugin_result_data(const MYSQLND_RES * result, unsigned int plugin_id TSRMLS_DC); | PHPAPI void _mysqlnd_plugin_apply_with_argument(apply_func_arg_t apply_func, void * argument TSRMLS_DC); |
#define mysqlnd_plugin_get_plugin_result_data(r, p_id) _mysqlnd_plugin_get_plugin_result_data((r), (p_id) TSRMLS_CC) | #define mysqlnd_plugin_apply_with_argument(func, argument) _mysqlnd_plugin_apply_with_argument((func), (argument) TSRMLS_CC); |
|
|
PHPAPI void ** _mysqlnd_plugin_get_plugin_stmt_data(const MYSQLND_STMT * stmt, unsigned int plugin_id TSRMLS_DC); | #define mysqlnd_restart_psession(conn) ((conn)->data)->m->restart_psession((conn)->data 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_end_psession(conn) ((conn)->data)->m->end_psession((conn)->data TSRMLS_CC) |
| |
PHPAPI void ** _mysqlnd_plugin_get_plugin_protocol_data(const MYSQLND_PROTOCOL * protocol, unsigned int plugin_id TSRMLS_DC); | |
#define mysqlnd_plugin_get_plugin_protocol_data(p, p_id) _mysqlnd_plugin_get_plugin_protocol_data((p), (p_id) TSRMLS_CC) | |
| |
| |
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); | |
| |
| |
#define mysqlnd_restart_psession(conn) (conn)->m->restart_psession((conn) TSRMLS_CC) | |
#define mysqlnd_end_psession(conn) (conn)->m->end_psession((conn) TSRMLS_CC) | |
PHPAPI void mysqlnd_minfo_print_hash(zval *values); |
PHPAPI void mysqlnd_minfo_print_hash(zval *values); |
#define mysqlnd_thread_safe() TRUE |
#define mysqlnd_thread_safe() TRUE |
|
|
Line 102 PHPAPI const MYSQLND_CHARSET * mysqlnd_find_charset_na
|
Line 87 PHPAPI const MYSQLND_CHARSET * mysqlnd_find_charset_na
|
/* Connect */ |
/* Connect */ |
#define mysqlnd_init(persistent) _mysqlnd_init((persistent) TSRMLS_CC) |
#define mysqlnd_init(persistent) _mysqlnd_init((persistent) TSRMLS_CC) |
PHPAPI MYSQLND * _mysqlnd_init(zend_bool persistent TSRMLS_DC); |
PHPAPI MYSQLND * _mysqlnd_init(zend_bool persistent TSRMLS_DC); |
PHPAPI MYSQLND * mysqlnd_connect(MYSQLND *conn, | PHPAPI MYSQLND * mysqlnd_connect(MYSQLND * conn, |
const char *host, const char *user, | const char * host, const char * user, |
const char *passwd, unsigned int passwd_len, | const char * passwd, unsigned int passwd_len, |
const char *db, unsigned int db_len, | const char * db, unsigned int db_len, |
unsigned int port, |
unsigned int port, |
const char *socket_or_pipe, | const char * socket_or_pipe, |
unsigned int mysql_flags |
unsigned int mysql_flags |
TSRMLS_DC); |
TSRMLS_DC); |
|
|
#define mysqlnd_change_user(conn, user, passwd, db, silent) (conn)->m->change_user((conn), (user), (passwd), (db), (silent) TSRMLS_CC) | #define mysqlnd_change_user(conn, user, passwd, db, silent) ((conn)->data)->m->change_user((conn)->data, (user), (passwd), (db), (silent), strlen((passwd)) TSRMLS_CC) |
| #define mysqlnd_change_user_ex(conn, user, passwd, db, silent, passwd_len) ((conn)->data)->m->change_user((conn)->data, (user), (passwd), (db), (silent), (passwd_len) TSRMLS_CC) |
|
|
#define mysqlnd_debug(x) _mysqlnd_debug((x) TSRMLS_CC) |
#define mysqlnd_debug(x) _mysqlnd_debug((x) TSRMLS_CC) |
PHPAPI void _mysqlnd_debug(const char *mode TSRMLS_DC); |
PHPAPI void _mysqlnd_debug(const char *mode TSRMLS_DC); |
Line 121 PHPAPI void _mysqlnd_debug(const char *mode TSRMLS_DC)
|
Line 107 PHPAPI void _mysqlnd_debug(const char *mode TSRMLS_DC)
|
#define mysqlnd_fetch_row_c(result) (result)->m.fetch_row_c((result) TSRMLS_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_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_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_connection_stats(conn, values) ((conn)->data)->m->get_statistics((conn)->data, (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_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_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_query(conn, query_str, query_len) ((conn)->data)->m->query((conn)->data, (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_async_query(conn, query_str, query_len) ((conn)->data)->m->send_query((conn)->data, (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_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_reap_async_query(conn) ((conn)->data)->m->reap_query((conn)->data TSRMLS_CC) |
#define mysqlnd_unbuffered_skip_result(result) (result)->m.skip_result((result) TSRMLS_CC) |
#define mysqlnd_unbuffered_skip_result(result) (result)->m.skip_result((result) TSRMLS_CC) |
|
|
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 enum_func_status _mysqlnd_poll(MYSQLND **r_array, MYSQLND **e_array, MYSQLND ***dont_poll, long sec, long usec, int * desc_num TSRMLS_DC); |
|
|
#define mysqlnd_use_result(conn) (conn)->m->use_result((conn) TSRMLS_CC) | #define mysqlnd_use_result(conn) ((conn)->data)->m->use_result((conn)->data TSRMLS_CC) |
#define mysqlnd_store_result(conn) (conn)->m->store_result((conn) TSRMLS_CC) | #define mysqlnd_store_result(conn) ((conn)->data)->m->store_result((conn)->data TSRMLS_CC) |
#define mysqlnd_next_result(conn) (conn)->m->next_result((conn) TSRMLS_CC) | #define mysqlnd_next_result(conn) ((conn)->data)->m->next_result((conn)->data TSRMLS_CC) |
#define mysqlnd_more_results(conn) (conn)->m->more_results((conn) TSRMLS_CC) | #define mysqlnd_more_results(conn) ((conn)->data)->m->more_results((conn)->data 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_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_data_seek(result, row) (result)->m.seek_data((result), (row) TSRMLS_CC) |
|
|
/* Errors */ |
/* Errors */ |
#define mysqlnd_errno(conn) (conn)->m->get_error_no((conn) TSRMLS_CC) | #define mysqlnd_errno(conn) ((conn)->data)->m->get_error_no((conn)->data TSRMLS_CC) |
#define mysqlnd_error(conn) (conn)->m->get_error_str((conn) TSRMLS_CC) | #define mysqlnd_error(conn) ((conn)->data)->m->get_error_str((conn)->data TSRMLS_CC) |
#define mysqlnd_sqlstate(conn) (conn)->m->get_sqlstate((conn) TSRMLS_CC) | #define mysqlnd_sqlstate(conn) ((conn)->data)->m->get_sqlstate((conn)->data TSRMLS_CC) |
|
|
/* Charset */ |
/* Charset */ |
#define mysqlnd_character_set_name(conn) (conn)->m->charset_name((conn) TSRMLS_CC) | #define mysqlnd_character_set_name(conn) ((conn)->data)->m->charset_name((conn)->data TSRMLS_CC) |
|
|
/* Simple metadata */ |
/* Simple metadata */ |
#define mysqlnd_field_count(conn) (conn)->m->get_field_count((conn) TSRMLS_CC) | #define mysqlnd_field_count(conn) ((conn)->data)->m->get_field_count((conn)->data TSRMLS_CC) |
#define mysqlnd_insert_id(conn) (conn)->m->get_last_insert_id((conn) TSRMLS_CC) | #define mysqlnd_insert_id(conn) ((conn)->data)->m->get_last_insert_id((conn)->data TSRMLS_CC) |
#define mysqlnd_affected_rows(conn) (conn)->m->get_affected_rows((conn) TSRMLS_CC) | #define mysqlnd_affected_rows(conn) ((conn)->data)->m->get_affected_rows((conn)->data TSRMLS_CC) |
#define mysqlnd_warning_count(conn) (conn)->m->get_warning_count((conn) TSRMLS_CC) | #define mysqlnd_warning_count(conn) ((conn)->data)->m->get_warning_count((conn)->data TSRMLS_CC) |
#define mysqlnd_info(conn) (conn)->m->get_last_message((conn) TSRMLS_CC) | #define mysqlnd_info(conn) ((conn)->data)->m->get_last_message((conn)->data TSRMLS_CC) |
#define mysqlnd_get_server_info(conn) (conn)->m->get_server_information((conn) TSRMLS_CC) | #define mysqlnd_get_server_info(conn) ((conn)->data)->m->get_server_information((conn)->data TSRMLS_CC) |
#define mysqlnd_get_host_info(conn) (conn)->m->get_host_information((conn) TSRMLS_CC) | #define mysqlnd_get_server_version(conn) ((conn)->data)->m->get_server_version((conn)->data TSRMLS_CC) |
#define mysqlnd_get_proto_info(conn) (conn)->m->get_protocol_information((conn) TSRMLS_CC) | #define mysqlnd_get_host_info(conn) ((conn)->data)->m->get_host_information((conn)->data TSRMLS_CC) |
#define mysqlnd_thread_id(conn) (conn)->m->get_thread_id((conn) TSRMLS_CC) | #define mysqlnd_get_proto_info(conn) ((conn)->data)->m->get_protocol_information((conn)->data TSRMLS_CC) |
| #define mysqlnd_thread_id(conn) ((conn)->data)->m->get_thread_id((conn)->data TSRMLS_CC) |
| #define mysqlnd_get_server_status(conn) ((conn)->data)->m->get_server_status((conn)->data TSRMLS_CC) |
|
|
#define mysqlnd_num_rows(result) (result)->m.num_rows((result) 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_num_fields(result) (result)->m.num_fields((result) TSRMLS_CC) |
Line 175 PHPAPI unsigned long * _mysqlnd_fetch_lengths(MYSQLND_
|
Line 163 PHPAPI unsigned long * _mysqlnd_fetch_lengths(MYSQLND_
|
PHPAPI const char * mysqlnd_get_client_info(); |
PHPAPI const char * mysqlnd_get_client_info(); |
PHPAPI unsigned int mysqlnd_get_client_version(); |
PHPAPI unsigned int mysqlnd_get_client_version(); |
|
|
#define mysqlnd_ssl_set(conn, key, cert, ca, capath, cipher) (conn)->m->ssl_set((conn), (key), (cert), (ca), (capath), (cipher) TSRMLS_CC) | #define mysqlnd_ssl_set(conn, key, cert, ca, capath, cipher) ((conn)->data)->m->ssl_set((conn)->data, (key), (cert), (ca), (capath), (cipher) TSRMLS_CC) |
|
|
/* PS */ |
/* PS */ |
#define mysqlnd_stmt_insert_id(stmt) (stmt)->m->get_last_insert_id((stmt) TSRMLS_CC) |
#define mysqlnd_stmt_insert_id(stmt) (stmt)->m->get_last_insert_id((stmt) TSRMLS_CC) |
Line 199 PHPAPI void mysqlnd_free_result_bind_dtor(MYSQLND_RESU
|
Line 187 PHPAPI void mysqlnd_free_result_bind_dtor(MYSQLND_RESU
|
PHPAPI const char * mysqlnd_field_type_name(enum mysqlnd_field_types field_type); |
PHPAPI const char * mysqlnd_field_type_name(enum mysqlnd_field_types field_type); |
|
|
/* LOAD DATA LOCAL */ |
/* LOAD DATA LOCAL */ |
PHPAPI void mysqlnd_local_infile_default(MYSQLND *conn); | PHPAPI void mysqlnd_local_infile_default(MYSQLND_CONN_DATA * conn); |
PHPAPI void mysqlnd_set_local_infile_handler(MYSQLND * const conn, const char * const funcname); | PHPAPI void mysqlnd_set_local_infile_handler(MYSQLND_CONN_DATA * const conn, const char * const funcname); |
|
|
/* Simple commands */ |
/* Simple commands */ |
#ifdef AUTOCOMMIT_TX_COMMIT_ROLLBACK | #define mysqlnd_autocommit(conn, mode) ((conn)->data)->m->set_autocommit((conn)->data, (mode) TSRMLS_CC) |
#define mysqlnd_autocommit(conn, mode) (conn)->m->set_autocommit((conn), (mode) TSRMLS_CC) | #define mysqlnd_commit(conn) ((conn)->data)->m->tx_commit((conn)->data TSRMLS_CC) |
#define mysqlnd_commit(conn) (conn)->m->tx_commit((conn) TSRMLS_CC) | #define mysqlnd_rollback(conn) ((conn)->data)->m->tx_rollback((conn)->data TSRMLS_CC) |
#define mysqlnd_rollback(conn) (conn)->m->tx_rollback((conn) TSRMLS_CC) | #define mysqlnd_list_dbs(conn, wild) ((conn)->data)->m->list_method((conn)->data, wild? "SHOW DATABASES LIKE %s":"SHOW DATABASES", (wild), NULL TSRMLS_CC) |
#else | #define mysqlnd_list_fields(conn, tab,wild) ((conn)->data)->m->list_fields((conn)->data, (tab), (wild) TSRMLS_CC) |
#define mysqlnd_autocommit(conn, mode) (conn)->m->query((conn),(mode) ? "SET AUTOCOMMIT=1":"SET AUTOCOMMIT=0", 16 TSRMLS_CC) | #define mysqlnd_list_processes(conn) ((conn)->data)->m->list_method((conn)->data, "SHOW PROCESSLIST", NULL, NULL TSRMLS_CC) |
#define mysqlnd_commit(conn) (conn)->m->query((conn), "COMMIT", sizeof("COMMIT")-1 TSRMLS_CC) | #define mysqlnd_list_tables(conn, wild) ((conn)->data)->m->list_method((conn)->data, wild? "SHOW TABLES LIKE %s":"SHOW TABLES", (wild), NULL TSRMLS_CC) |
#define mysqlnd_rollback(conn) (conn)->m->query((conn), "ROLLBACK", sizeof("ROLLBACK")-1 TSRMLS_CC) | #define mysqlnd_dump_debug_info(conn) ((conn)->data)->m->server_dump_debug_information((conn)->data TSRMLS_CC) |
#endif | #define mysqlnd_select_db(conn, db, db_len) ((conn)->data)->m->select_db((conn)->data, (db), (db_len) 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_ping(conn) ((conn)->data)->m->ping((conn)->data TSRMLS_CC) |
#define mysqlnd_list_fields(conn, tab,wild) (conn)->m->list_fields((conn), (tab), (wild) TSRMLS_CC) | #define mysqlnd_kill(conn, pid) ((conn)->data)->m->kill_connection((conn)->data, (pid) TSRMLS_CC) |
#define mysqlnd_list_processes(conn) (conn)->m->list_method((conn), "SHOW PROCESSLIST", NULL, NULL TSRMLS_CC) | #define mysqlnd_refresh(conn, options) ((conn)->data)->m->refresh_server((conn)->data, (options) 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_shutdown(conn, level) ((conn)->data)->m->shutdown_server((conn)->data, (level) TSRMLS_CC) |
#define mysqlnd_dump_debug_info(conn) (conn)->m->server_dump_debug_information((conn) TSRMLS_CC) | #define mysqlnd_set_character_set(conn, cs) ((conn)->data)->m->set_charset((conn)->data, (cs) TSRMLS_CC) |
#define mysqlnd_select_db(conn, db, db_len) (conn)->m->select_db((conn), (db), (db_len) TSRMLS_CC) | #define mysqlnd_stat(conn, msg, msg_len) ((conn)->data)->m->get_server_statistics(((conn)->data), (msg), (msg_len) TSRMLS_CC) |
#define mysqlnd_ping(conn) (conn)->m->ping((conn) TSRMLS_CC) | #define mysqlnd_options(conn, opt, value) ((conn)->data)->m->set_client_option((conn)->data, (opt), (value) TSRMLS_CC) |
#define mysqlnd_kill(conn, pid) (conn)->m->kill_connection((conn), (pid) TSRMLS_CC) | #define mysqlnd_set_server_option(conn, op) ((conn)->data)->m->set_server_option((conn)->data, (op) 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) | |
|
|
/* Escaping */ |
/* Escaping */ |
#define mysqlnd_real_escape_string(conn, newstr, escapestr, escapestr_len) \ |
#define mysqlnd_real_escape_string(conn, newstr, escapestr, escapestr_len) \ |
(conn)->m->escape_string((conn), (newstr), (escapestr), (escapestr_len) TSRMLS_CC) | ((conn)->data)->m->escape_string((conn)->data, (newstr), (escapestr), (escapestr_len) TSRMLS_CC) |
#define mysqlnd_escape_string(newstr, escapestr, escapestr_len) \ |
#define mysqlnd_escape_string(newstr, escapestr, escapestr_len) \ |
mysqlnd_old_escape_string((newstr), (escapestr), (escapestr_len) TSRMLS_CC) |
mysqlnd_old_escape_string((newstr), (escapestr), (escapestr_len) TSRMLS_CC) |
|
|
PHPAPI ulong mysqlnd_old_escape_string(char *newstr, const char *escapestr, size_t escapestr_len TSRMLS_DC); | PHPAPI ulong mysqlnd_old_escape_string(char * newstr, const char * escapestr, size_t escapestr_len TSRMLS_DC); |
|
|
|
|
/* PS */ |
/* PS */ |
#define mysqlnd_stmt_init(conn) (conn)->m->stmt_init((conn) TSRMLS_CC) | #define mysqlnd_stmt_init(conn) ((conn)->data)->m->stmt_init(((conn)->data) 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_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_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_more_results(stmt) (stmt)->m->more_results((stmt) TSRMLS_CC) |
Line 262 PHPAPI ulong mysqlnd_old_escape_string(char *newstr, c
|
Line 243 PHPAPI ulong mysqlnd_old_escape_string(char *newstr, c
|
#define mysqlnd_stmt_free_result(stmt) (stmt)->m->free_result((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_close(stmt, implicit) (stmt)->m->dtor((stmt), (implicit) TSRMLS_CC) |
#define mysqlnd_stmt_reset(stmt) (stmt)->m->reset((stmt) TSRMLS_CC) |
#define mysqlnd_stmt_reset(stmt) (stmt)->m->reset((stmt) TSRMLS_CC) |
|
#define mysqlnd_stmt_flush(stmt) (stmt)->m->flush((stmt) TSRMLS_CC) |
|
|
|
|
#define mysqlnd_stmt_attr_get(stmt, attr, value) (stmt)->m->get_attribute((stmt), (attr), (value) TSRMLS_CC) |
#define mysqlnd_stmt_attr_get(stmt, attr, value) (stmt)->m->get_attribute((stmt), (attr), (value) TSRMLS_CC) |