php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
mysqli.c File Reference
#include <signal.h>
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_mysqli.h"
#include "php_mysqli_structs.h"
#include "mysqli_priv.h"
#include "zend_attributes.h"
#include "zend_exceptions.h"
#include "ext/spl/spl_exceptions.h"
#include "zend_interfaces.h"
#include "mysqli_arginfo.h"
#include "ext/mysqlnd/mysqlnd_reverse_api.h"

Go to the source code of this file.

Data Structures

struct  _mysqli_prop_handler
 

Macros

#define MYSQLI_ADD_PROPERTIES(a, b)
 
#define ERROR_ARG_POS(arg_num)
 

Typedefs

typedef zend_result(* mysqli_read_t) (mysqli_object *obj, zval *rv, bool quiet)
 
typedef zend_result(* mysqli_write_t) (mysqli_object *obj, zval *newval)
 
typedef struct _mysqli_prop_handler mysqli_prop_handler
 

Functions

void php_mysqli_dtor_p_elements (void *data)
 
 ZEND_RSRC_DTOR_FUNC (php_mysqli_dtor)
 
int php_le_pmysqli (void)
 
void php_clear_stmt_bind (MY_STMT *stmt)
 
void php_clear_mysql (MY_MYSQL *mysql)
 
zvalmysqli_read_property (zend_object *object, zend_string *name, int type, void **cache_slot, zval *rv)
 
zvalmysqli_write_property (zend_object *object, zend_string *name, zval *value, void **cache_slot)
 
void mysqli_add_property (HashTable *h, const char *pname, size_t pname_len, mysqli_read_t r_func, mysqli_write_t w_func)
 
HashTablemysqli_object_get_debug_info (zend_object *object, int *is_temp)
 
 PHP_MYSQLI_EXPORT (zend_object *)
 
 PHP_MINIT_FUNCTION (mysqli)
 
 PHP_MSHUTDOWN_FUNCTION (mysqli)
 
 PHP_RINIT_FUNCTION (mysqli)
 
 PHP_RSHUTDOWN_FUNCTION (mysqli)
 
 PHP_MINFO_FUNCTION (mysqli)
 
 PHP_METHOD (mysqli_stmt, __construct)
 
 PHP_METHOD (mysqli_result, __construct)
 
 PHP_METHOD (mysqli_result, getIterator)
 
void php_mysqli_fetch_into_hash_aux (zval *return_value, MYSQL_RES *result, zend_long fetchtype)
 
void php_mysqli_fetch_into_hash (INTERNAL_FUNCTION_PARAMETERS, int override_flags, int into_object)
 

Variables

zend_class_entrymysqli_link_class_entry
 
zend_class_entrymysqli_stmt_class_entry
 
zend_class_entrymysqli_result_class_entry
 
zend_class_entrymysqli_driver_class_entry
 
zend_class_entrymysqli_warning_class_entry
 
zend_class_entrymysqli_exception_class_entry
 
zend_module_entry mysqli_module_entry
 

Macro Definition Documentation

◆ ERROR_ARG_POS

#define ERROR_ARG_POS ( arg_num)
Value:
(hasThis() ? (arg_num-1) : (arg_num))
#define hasThis()
Definition zend_API.h:525
uint32_t arg_num

Definition at line 51 of file mysqli.c.

◆ MYSQLI_ADD_PROPERTIES

#define MYSQLI_ADD_PROPERTIES ( a,
b )
Value:
{ \
int i = 0; \
while (b[i].pname != NULL) { \
mysqli_add_property((a), (b)[i].pname, (b)[i].pname_length, \
(mysqli_read_t)(b)[i].r_func, (mysqli_write_t)(b)[i].w_func); \
i++; \
} \
}
#define NULL
Definition gdcache.h:45
zend_result(* mysqli_write_t)(mysqli_object *obj, zval *newval)
Definition mysqli.c:75
zend_result(* mysqli_read_t)(mysqli_object *obj, zval *rv, bool quiet)
Definition mysqli.c:74
$obj a
Definition test.php:84

Definition at line 41 of file mysqli.c.

Typedef Documentation

◆ mysqli_prop_handler

◆ mysqli_read_t

typedef zend_result(* mysqli_read_t) (mysqli_object *obj, zval *rv, bool quiet)

Definition at line 74 of file mysqli.c.

◆ mysqli_write_t

typedef zend_result(* mysqli_write_t) (mysqli_object *obj, zval *newval)

Definition at line 75 of file mysqli.c.

Function Documentation

◆ mysqli_add_property()

void mysqli_add_property ( HashTable * h,
const char * pname,
size_t pname_len,
mysqli_read_t r_func,
mysqli_write_t w_func )

Definition at line 294 of file mysqli.c.

◆ mysqli_object_get_debug_info()

HashTable * mysqli_object_get_debug_info ( zend_object * object,
int * is_temp )

Definition at line 343 of file mysqli.c.

◆ mysqli_read_property()

zval * mysqli_read_property ( zend_object * object,
zend_string * name,
int type,
void ** cache_slot,
zval * rv )

Definition at line 241 of file mysqli.c.

◆ mysqli_write_property()

zval * mysqli_write_property ( zend_object * object,
zend_string * name,
zval * value,
void ** cache_slot )

Definition at line 260 of file mysqli.c.

◆ php_clear_mysql()

void php_clear_mysql ( MY_MYSQL * mysql)

Definition at line 135 of file mysqli.c.

◆ php_clear_stmt_bind()

void php_clear_stmt_bind ( MY_STMT * stmt)

Definition at line 114 of file mysqli.c.

◆ php_le_pmysqli()

int php_le_pmysqli ( void )

Definition at line 108 of file mysqli.c.

◆ PHP_METHOD() [1/3]

PHP_METHOD ( mysqli_result ,
__construct  )

Definition at line 676 of file mysqli.c.

◆ PHP_METHOD() [2/3]

PHP_METHOD ( mysqli_result ,
getIterator  )

Definition at line 717 of file mysqli.c.

◆ PHP_METHOD() [3/3]

PHP_METHOD ( mysqli_stmt ,
__construct  )

Definition at line 640 of file mysqli.c.

◆ PHP_MINFO_FUNCTION()

PHP_MINFO_FUNCTION ( mysqli )

Definition at line 585 of file mysqli.c.

◆ PHP_MINIT_FUNCTION()

PHP_MINIT_FUNCTION ( mysqli )

Definition at line 473 of file mysqli.c.

◆ PHP_MSHUTDOWN_FUNCTION()

PHP_MSHUTDOWN_FUNCTION ( mysqli )

Definition at line 544 of file mysqli.c.

◆ php_mysqli_dtor_p_elements()

void php_mysqli_dtor_p_elements ( void * data)

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_flags,
int into_object )

Definition at line 746 of file mysqli.c.

◆ php_mysqli_fetch_into_hash_aux()

void php_mysqli_fetch_into_hash_aux ( zval * return_value,
MYSQL_RES * result,
zend_long fetchtype )

Definition at line 727 of file mysqli.c.

◆ PHP_RINIT_FUNCTION()

PHP_RINIT_FUNCTION ( mysqli )

Definition at line 559 of file mysqli.c.

◆ PHP_RSHUTDOWN_FUNCTION()

PHP_RSHUTDOWN_FUNCTION ( mysqli )

Definition at line 571 of file mysqli.c.

◆ ZEND_RSRC_DTOR_FUNC()

ZEND_RSRC_DTOR_FUNC ( php_mysqli_dtor )

Definition at line 97 of file mysqli.c.

Variable Documentation

◆ mysqli_driver_class_entry

zend_class_entry* mysqli_driver_class_entry

Definition at line 69 of file mysqli.c.

◆ mysqli_exception_class_entry

zend_class_entry* mysqli_exception_class_entry

Definition at line 71 of file mysqli.c.

◆ mysqli_link_class_entry

zend_class_entry* mysqli_link_class_entry

Definition at line 66 of file mysqli.c.

◆ mysqli_module_entry

zend_module_entry mysqli_module_entry
Initial value:
= {
mysqli_deps,
"mysqli",
ext_functions,
}
#define PHP_GINIT
Definition php.h:397
#define PHP_MINFO
Definition php.h:396
#define PHP_RINIT
Definition php.h:394
#define PHP_MSHUTDOWN
Definition php.h:393
#define PHP_RSHUTDOWN
Definition php.h:395
#define PHP_MINIT
Definition php.h:392
#define PHP_MODULE_GLOBALS
Definition php.h:408
#define PHP_MYSQLI_VERSION
Definition php_mysqli.h:26
#define STANDARD_MODULE_PROPERTIES_EX
#define STANDARD_MODULE_HEADER_EX

Definition at line 613 of file mysqli.c.

◆ mysqli_result_class_entry

zend_class_entry* mysqli_result_class_entry

Definition at line 68 of file mysqli.c.

◆ mysqli_stmt_class_entry

zend_class_entry* mysqli_stmt_class_entry

Definition at line 67 of file mysqli.c.

◆ mysqli_warning_class_entry

zend_class_entry* mysqli_warning_class_entry

Definition at line 70 of file mysqli.c.