php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
mysqlnd_alloc.c File Reference
#include "php.h"
#include "mysqlnd.h"
#include "mysqlnd_priv.h"
#include "mysqlnd_debug.h"
#include "mysqlnd_wireprotocol.h"
#include "mysqlnd_statistics.h"
#include "zend_smart_str.h"

Go to the source code of this file.

Macros

#define MYSQLND_DEBUG_MEMORY   1
 
#define __zend_orig_filename   "/unknown/unknown"
 
#define __zend_orig_lineno   0
 
#define EXTRA_SIZE   ZEND_MM_ALIGNED_SIZE(sizeof(size_t))
 
#define REAL_SIZE(s)
 
#define REAL_PTR(p)
 
#define FAKE_PTR(p)
 
#define SMART_STR_START_SIZE   2048
 

Variables

PHPAPI const char * mysqlnd_debug_std_no_trace_funcs []
 
PHPAPI struct st_mysqlnd_allocator_methods mysqlnd_allocator
 

Macro Definition Documentation

◆ __zend_orig_filename

#define __zend_orig_filename   "/unknown/unknown"

Definition at line 60 of file mysqlnd_alloc.c.

◆ __zend_orig_lineno

#define __zend_orig_lineno   0

Definition at line 61 of file mysqlnd_alloc.c.

◆ EXTRA_SIZE

#define EXTRA_SIZE   ZEND_MM_ALIGNED_SIZE(sizeof(size_t))

Definition at line 64 of file mysqlnd_alloc.c.

◆ FAKE_PTR

#define FAKE_PTR ( p)
Value:
(collect_memory_statistics && (p)? (((char *)(p)) + EXTRA_SIZE) : (p))
bool collect_memory_statistics
Definition mysqlnd.h:309
#define EXTRA_SIZE
p
Definition session.c:1105

Definition at line 67 of file mysqlnd_alloc.c.

◆ MYSQLND_DEBUG_MEMORY

#define MYSQLND_DEBUG_MEMORY   1

Definition at line 25 of file mysqlnd_alloc.c.

◆ REAL_PTR

#define REAL_PTR ( p)
Value:
(collect_memory_statistics && (p)? (((char *)(p)) - EXTRA_SIZE) : (p))

Definition at line 66 of file mysqlnd_alloc.c.

◆ REAL_SIZE

#define REAL_SIZE ( s)
Value:
char s[4]
Definition cdf.c:77

Definition at line 65 of file mysqlnd_alloc.c.

◆ SMART_STR_START_SIZE

#define SMART_STR_START_SIZE   2048

Definition at line 325 of file mysqlnd_alloc.c.

Variable Documentation

◆ mysqlnd_allocator

PHPAPI struct st_mysqlnd_allocator_methods mysqlnd_allocator
Initial value:
=
{
_mysqlnd_emalloc,
_mysqlnd_pemalloc,
_mysqlnd_ecalloc,
_mysqlnd_pecalloc,
_mysqlnd_erealloc,
_mysqlnd_perealloc,
_mysqlnd_efree,
_mysqlnd_pefree,
_mysqlnd_pememdup,
_mysqlnd_pestrndup,
_mysqlnd_pestrdup
}

Definition at line 458 of file mysqlnd_alloc.c.

◆ mysqlnd_debug_std_no_trace_funcs

PHPAPI const char* mysqlnd_debug_std_no_trace_funcs[]
Initial value:
=
{
mysqlnd_emalloc_name,
mysqlnd_ecalloc_name,
mysqlnd_efree_name,
mysqlnd_erealloc_name,
mysqlnd_pemalloc_name,
mysqlnd_pecalloc_name,
mysqlnd_pefree_name,
mysqlnd_perealloc_name,
mysqlnd_pestrndup_name,
}
#define NULL
Definition gdcache.h:45
const char mysqlnd_read_body_name[]
const char mysqlnd_read_header_name[]

Definition at line 39 of file mysqlnd_alloc.c.