php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
mysqli_priv.h File Reference

Go to the source code of this file.

Macros

#define PHP_MYSQLI_EXPORT(__type)
 
#define MYSQLI_DISABLE_MQ
 
#define MYSQLI_ENABLE_MQ
 
#define MYSQLI_RETURN_LONG_INT(__val)
 
#define MYSQLI_STORE_RESULT   0
 
#define MYSQLI_USE_RESULT   1
 
#define MYSQLI_ASYNC   8
 
#define MYSQLI_STORE_RESULT_COPY_DATA   16
 
#define MYSQLI_ASSOC   1
 
#define MYSQLI_NUM   2
 
#define MYSQLI_BOTH   3
 
#define FETCH_SIMPLE   1
 
#define FETCH_RESULT   2
 
#define MYSQLI_REPORT_OFF   0
 
#define MYSQLI_REPORT_ERROR   1
 
#define MYSQLI_REPORT_STRICT   2
 
#define MYSQLI_REPORT_INDEX   4
 
#define MYSQLI_REPORT_CLOSE   8
 
#define MYSQLI_REPORT_ALL   255
 
#define MYSQLI_REPORT_MYSQL_ERROR(mysql)
 
#define MYSQLI_REPORT_STMT_ERROR(stmt)
 

Functions

int php_le_pmysqli (void)
 
void php_mysqli_dtor_p_elements (void *data)
 
void php_mysqli_close (MY_MYSQL *mysql, int close_type, int resource_status)
 
void php_mysqli_fetch_into_hash (INTERNAL_FUNCTION_PARAMETERS, int override_flag, int into_object)
 
void php_clear_stmt_bind (MY_STMT *stmt)
 
void php_clear_mysql (MY_MYSQL *)
 
MYSQLI_WARNINGphp_get_warnings (MYSQLND_CONN_DATA *mysql)
 
void php_clear_warnings (MYSQLI_WARNING *w)
 
void php_free_stmt_bind_buffer (BIND_BUFFER bbuf, int type)
 
void php_mysqli_report_error (const char *sqlstate, int errorno, const char *error)
 
void php_mysqli_report_index (const char *query, unsigned int status)
 
void php_mysqli_throw_sql_exception (char *sqlstate, int errorno, char *format,...)
 
 PHP_MYSQLI_EXPORT (zend_object *) mysqli_objects_new(zend_class_entry *)
 
void mysqli_common_connect (INTERNAL_FUNCTION_PARAMETERS, bool is_real_connect, bool in_ctor)
 
void php_mysqli_init (INTERNAL_FUNCTION_PARAMETERS, bool is_method)
 

Variables

const zend_function_entry mysqli_functions []
 
const zend_function_entry mysqli_link_methods []
 
const zend_function_entry mysqli_stmt_methods []
 
const zend_function_entry mysqli_result_methods []
 
const zend_function_entry mysqli_driver_methods []
 
const zend_function_entry mysqli_warning_methods []
 
const zend_function_entry mysqli_exception_methods []
 
const mysqli_property_entry mysqli_link_property_entries []
 
const mysqli_property_entry mysqli_result_property_entries []
 
const mysqli_property_entry mysqli_stmt_property_entries []
 
const mysqli_property_entry mysqli_driver_property_entries []
 
const mysqli_property_entry mysqli_warning_property_entries []
 
const zend_property_info mysqli_link_property_info_entries []
 
const zend_property_info mysqli_result_property_info_entries []
 
const zend_property_info mysqli_stmt_property_info_entries []
 
const zend_property_info mysqli_driver_property_info_entries []
 
const zend_property_info mysqli_warning_property_info_entries []
 

Macro Definition Documentation

◆ FETCH_RESULT

#define FETCH_RESULT   2

Definition at line 100 of file mysqli_priv.h.

◆ FETCH_SIMPLE

#define FETCH_SIMPLE   1

Definition at line 99 of file mysqli_priv.h.

◆ MYSQLI_ASSOC

#define MYSQLI_ASSOC   1

Definition at line 94 of file mysqli_priv.h.

◆ MYSQLI_ASYNC

#define MYSQLI_ASYNC   8

Definition at line 90 of file mysqli_priv.h.

◆ MYSQLI_BOTH

#define MYSQLI_BOTH   3

Definition at line 96 of file mysqli_priv.h.

◆ MYSQLI_DISABLE_MQ

#define MYSQLI_DISABLE_MQ
Value:
if (mysql->multi_query) { \
mysql_set_server_option(mysql->mysql, MYSQL_OPTION_MULTI_STATEMENTS_OFF); \
mysql->multi_query = 0; \
}
@ MYSQL_OPTION_MULTI_STATEMENTS_OFF

Definition at line 67 of file mysqli_priv.h.

◆ MYSQLI_ENABLE_MQ

#define MYSQLI_ENABLE_MQ
Value:
if (!mysql->multi_query) { \
mysql_set_server_option(mysql->mysql, MYSQL_OPTION_MULTI_STATEMENTS_ON); \
mysql->multi_query = 1; \
}
@ MYSQL_OPTION_MULTI_STATEMENTS_ON

Definition at line 72 of file mysqli_priv.h.

◆ MYSQLI_NUM

#define MYSQLI_NUM   2

Definition at line 95 of file mysqli_priv.h.

◆ MYSQLI_REPORT_ALL

#define MYSQLI_REPORT_ALL   255

Definition at line 108 of file mysqli_priv.h.

◆ MYSQLI_REPORT_CLOSE

#define MYSQLI_REPORT_CLOSE   8

Definition at line 107 of file mysqli_priv.h.

◆ MYSQLI_REPORT_ERROR

#define MYSQLI_REPORT_ERROR   1

Definition at line 104 of file mysqli_priv.h.

◆ MYSQLI_REPORT_INDEX

#define MYSQLI_REPORT_INDEX   4

Definition at line 106 of file mysqli_priv.h.

◆ MYSQLI_REPORT_MYSQL_ERROR

#define MYSQLI_REPORT_MYSQL_ERROR ( mysql)
Value:
php_mysqli_report_error(mysql_sqlstate(mysql), mysql_errno(mysql), mysql_error(mysql)); \
}
#define MYSQLI_REPORT_ERROR
#define mysql_sqlstate(r)
#define mysql_error(r)
#define mysql_errno(r)
zend_long report_mode
#define MyG(v)

Definition at line 110 of file mysqli_priv.h.

◆ MYSQLI_REPORT_OFF

#define MYSQLI_REPORT_OFF   0

Definition at line 103 of file mysqli_priv.h.

◆ MYSQLI_REPORT_STMT_ERROR

#define MYSQLI_REPORT_STMT_ERROR ( stmt)
Value:
php_mysqli_report_error(mysql_stmt_sqlstate(stmt), mysql_stmt_errno(stmt), mysql_stmt_error(stmt)); \
}
#define mysql_stmt_error(s)
#define mysql_stmt_errno(s)
#define mysql_stmt_sqlstate(s)

Definition at line 115 of file mysqli_priv.h.

◆ MYSQLI_REPORT_STRICT

#define MYSQLI_REPORT_STRICT   2

Definition at line 105 of file mysqli_priv.h.

◆ MYSQLI_RETURN_LONG_INT

#define MYSQLI_RETURN_LONG_INT ( __val)
Value:
{ \
if ((__val) < ZEND_LONG_MAX) { \
RETURN_LONG((zend_long) (__val)); \
} else { \
/* always used with my_ulonglong -> %llu */ \
RETURN_STR(strpprintf(0, MYSQLI_LLU_SPEC, (__val))); \
} \
}
#define MYSQLI_LLU_SPEC
#define strpprintf
Definition spprintf.h:30
int32_t zend_long
Definition zend_long.h:42
#define ZEND_LONG_MAX
Definition zend_long.h:45

Definition at line 78 of file mysqli_priv.h.

◆ MYSQLI_STORE_RESULT

#define MYSQLI_STORE_RESULT   0

Definition at line 88 of file mysqli_priv.h.

◆ MYSQLI_STORE_RESULT_COPY_DATA

#define MYSQLI_STORE_RESULT_COPY_DATA   16

Definition at line 91 of file mysqli_priv.h.

◆ MYSQLI_USE_RESULT

#define MYSQLI_USE_RESULT   1

Definition at line 89 of file mysqli_priv.h.

◆ PHP_MYSQLI_EXPORT

#define PHP_MYSQLI_EXPORT ( __type)
Value:
#define PHP_MYSQLI_API

Definition at line 63 of file mysqli_priv.h.

Function Documentation

◆ mysqli_common_connect()

void mysqli_common_connect ( INTERNAL_FUNCTION_PARAMETERS ,
bool is_real_connect,
bool in_ctor )

Definition at line 48 of file mysqli_nonapi.c.

◆ php_clear_mysql()

void php_clear_mysql ( MY_MYSQL * mysql)
extern

Definition at line 135 of file mysqli.c.

◆ php_clear_stmt_bind()

void php_clear_stmt_bind ( MY_STMT * stmt)
extern

Definition at line 114 of file mysqli.c.

◆ php_clear_warnings()

void php_clear_warnings ( MYSQLI_WARNING * w)
extern

Definition at line 28 of file mysqli_warning.c.

◆ php_free_stmt_bind_buffer()

void php_free_stmt_bind_buffer ( BIND_BUFFER bbuf,
int type )
extern

◆ php_get_warnings()

MYSQLI_WARNING * php_get_warnings ( MYSQLND_CONN_DATA * mysql)
extern

Definition at line 62 of file mysqli_warning.c.

◆ php_le_pmysqli()

int php_le_pmysqli ( void )
extern

Definition at line 108 of file mysqli.c.

◆ php_mysqli_close()

void php_mysqli_close ( MY_MYSQL * mysql,
int close_type,
int resource_status )
extern

Definition at line 234 of file mysqli_api.c.

◆ php_mysqli_dtor_p_elements()

void php_mysqli_dtor_p_elements ( void * data)
extern

Definition at line 90 of file mysqli.c.

◆ PHP_MYSQLI_EXPORT()

PHP_MYSQLI_EXPORT ( zend_object * )

Definition at line 366 of file mysqli.c.

◆ php_mysqli_fetch_into_hash()

void php_mysqli_fetch_into_hash ( INTERNAL_FUNCTION_PARAMETERS ,
int override_flag,
int into_object )
extern

Definition at line 746 of file mysqli.c.

◆ php_mysqli_init()

void php_mysqli_init ( INTERNAL_FUNCTION_PARAMETERS ,
bool is_method )

Definition at line 967 of file mysqli_api.c.

◆ php_mysqli_report_error()

void php_mysqli_report_error ( const char * sqlstate,
int errorno,
const char * error )
extern

Definition at line 43 of file mysqli_report.c.

◆ php_mysqli_report_index()

void php_mysqli_report_index ( const char * query,
unsigned int status )
extern

Definition at line 50 of file mysqli_report.c.

◆ php_mysqli_throw_sql_exception()

void php_mysqli_throw_sql_exception ( char * sqlstate,
int errorno,
char * format,
... )
extern

Definition at line 28 of file mysqli_exception.c.

Variable Documentation

◆ mysqli_driver_methods

const zend_function_entry mysqli_driver_methods[]
extern

◆ mysqli_driver_property_entries

const mysqli_property_entry mysqli_driver_property_entries[]
extern

Definition at line 73 of file mysqli_driver.c.

◆ mysqli_driver_property_info_entries

const zend_property_info mysqli_driver_property_info_entries[]
extern

◆ mysqli_exception_methods

const zend_function_entry mysqli_exception_methods[]
extern

◆ mysqli_functions

const zend_function_entry mysqli_functions[]
extern

◆ mysqli_link_methods

const zend_function_entry mysqli_link_methods[]
extern

◆ mysqli_link_property_entries

const mysqli_property_entry mysqli_link_property_entries[]
extern

Definition at line 375 of file mysqli_prop.c.

◆ mysqli_link_property_info_entries

const zend_property_info mysqli_link_property_info_entries[]
extern

◆ mysqli_result_methods

const zend_function_entry mysqli_result_methods[]
extern

◆ mysqli_result_property_entries

const mysqli_property_entry mysqli_result_property_entries[]
extern

Definition at line 398 of file mysqli_prop.c.

◆ mysqli_result_property_info_entries

const zend_property_info mysqli_result_property_info_entries[]
extern

◆ mysqli_stmt_methods

const zend_function_entry mysqli_stmt_methods[]
extern

◆ mysqli_stmt_property_entries

const mysqli_property_entry mysqli_stmt_property_entries[]
extern

Definition at line 407 of file mysqli_prop.c.

◆ mysqli_stmt_property_info_entries

const zend_property_info mysqli_stmt_property_info_entries[]
extern

◆ mysqli_warning_methods

const zend_function_entry mysqli_warning_methods[]
extern

◆ mysqli_warning_property_entries

const mysqli_property_entry mysqli_warning_property_entries[]
extern

Definition at line 208 of file mysqli_warning.c.

◆ mysqli_warning_property_info_entries

const zend_property_info mysqli_warning_property_info_entries[]
extern