20#ifdef PHP_MYSQL_UNIX_SOCK_ADDR
24#define MYSQL_UNIX_ADDR PHP_MYSQL_UNIX_SOCK_ADDR
63#define PHP_MYSQLI_EXPORT(__type) PHP_MYSQLI_API __type
67#define MYSQLI_DISABLE_MQ if (mysql->multi_query) { \
68 mysql_set_server_option(mysql->mysql, MYSQL_OPTION_MULTI_STATEMENTS_OFF); \
69 mysql->multi_query = 0; \
72#define MYSQLI_ENABLE_MQ if (!mysql->multi_query) { \
73 mysql_set_server_option(mysql->mysql, MYSQL_OPTION_MULTI_STATEMENTS_ON); \
74 mysql->multi_query = 1; \
78#define MYSQLI_RETURN_LONG_INT(__val) \
80 if ((__val) < ZEND_LONG_MAX) { \
81 RETURN_LONG((zend_long) (__val)); \
84 RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \
88#define MYSQLI_STORE_RESULT 0
89#define MYSQLI_USE_RESULT 1
91#define MYSQLI_STORE_RESULT_COPY_DATA 16
100#define FETCH_RESULT 2
103#define MYSQLI_REPORT_OFF 0
104#define MYSQLI_REPORT_ERROR 1
105#define MYSQLI_REPORT_STRICT 2
106#define MYSQLI_REPORT_INDEX 4
107#define MYSQLI_REPORT_CLOSE 8
108#define MYSQLI_REPORT_ALL 255
110#define MYSQLI_REPORT_MYSQL_ERROR(mysql) \
111if ((MyG(report_mode) & MYSQLI_REPORT_ERROR) && mysql_errno(mysql)) { \
112 php_mysqli_report_error(mysql_sqlstate(mysql), mysql_errno(mysql), mysql_error(mysql)); \
115#define MYSQLI_REPORT_STMT_ERROR(stmt) \
116if ((MyG(report_mode) & MYSQLI_REPORT_ERROR) && mysql_stmt_errno(stmt)) { \
117 php_mysqli_report_error(mysql_stmt_sqlstate(stmt), mysql_stmt_errno(stmt), mysql_stmt_error(stmt)); \
const mysqli_property_entry mysqli_driver_property_entries[]
const mysqli_property_entry mysqli_stmt_property_entries[]
void mysqli_common_connect(INTERNAL_FUNCTION_PARAMETERS, bool is_real_connect, bool in_ctor)
const zend_function_entry mysqli_result_methods[]
const zend_function_entry mysqli_driver_methods[]
void php_free_stmt_bind_buffer(BIND_BUFFER bbuf, int type)
void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flag, int into_object)
#define PHP_MYSQLI_EXPORT(__type)
const zend_function_entry mysqli_functions[]
const zend_function_entry mysqli_stmt_methods[]
void php_clear_warnings(MYSQLI_WARNING *w)
void php_clear_mysql(MY_MYSQL *)
void php_mysqli_report_error(const char *sqlstate, int errorno, const char *error)
void php_mysqli_init(INTERNAL_FUNCTION_PARAMETERS, bool is_method)
const zend_property_info mysqli_link_property_info_entries[]
void php_clear_stmt_bind(MY_STMT *stmt)
MYSQLI_WARNING * php_get_warnings(MYSQLND_CONN_DATA *mysql)
const mysqli_property_entry mysqli_result_property_entries[]
const mysqli_property_entry mysqli_warning_property_entries[]
const zend_function_entry mysqli_link_methods[]
const zend_function_entry mysqli_exception_methods[]
void php_mysqli_dtor_p_elements(void *data)
const zend_property_info mysqli_result_property_info_entries[]
const zend_property_info mysqli_warning_property_info_entries[]
void php_mysqli_report_index(const char *query, unsigned int status)
const zend_property_info mysqli_stmt_property_info_entries[]
const zend_property_info mysqli_driver_property_info_entries[]
void php_mysqli_close(MY_MYSQL *mysql, int close_type, int resource_status)
const zend_function_entry mysqli_warning_methods[]
const mysqli_property_entry mysqli_link_property_entries[]
void php_mysqli_throw_sql_exception(char *sqlstate, int errorno, char *format,...)
struct st_mysqlnd_connection_data MYSQLND_CONN_DATA
struct st_mysqli_warning MYSQLI_WARNING
struct _mysqli_property_entry mysqli_property_entry
#define INTERNAL_FUNCTION_PARAMETERS
struct _zend_function_entry zend_function_entry
struct _zend_property_info zend_property_info
struct _zend_class_entry zend_class_entry
struct _zend_object zend_object