Macros | Functions | Variables
protobuf/php/ext/google/protobuf/protobuf.c File Reference
#include "protobuf.h"
#include <php.h>
#include <Zend/zend_interfaces.h>
#include "arena.h"
#include "array.h"
#include "convert.h"
#include "def.h"
#include "map.h"
#include "message.h"
#include "names.h"
Include dependency graph for protobuf/php/ext/google/protobuf/protobuf.c:

Go to the source code of this file.

Macros

#define PROTOBUF_G(v)   ZEND_MODULE_GLOBALS_ACCESSOR(protobuf, v)
 

Functions

void Descriptors_Add (zend_object *desc)
 
void free_protobuf_globals (zend_protobuf_globals *globals)
 
const zval * get_generated_pool ()
 
void NameMap_AddEnum (const upb_enumdef *e)
 
void NameMap_AddMessage (const upb_msgdef *m)
 
const upb_enumdefNameMap_GetEnum (zend_class_entry *ce)
 
const upb_msgdefNameMap_GetMessage (zend_class_entry *ce)
 
void ObjCache_Add (const void *upb_obj, zend_object *php_obj)
 
void ObjCache_Delete (const void *upb_obj)
 
bool ObjCache_Get (const void *upb_obj, zval *val)
 
static PHP_GINIT_FUNCTION (protobuf)
 
static PHP_GSHUTDOWN_FUNCTION (protobuf)
 
static PHP_MSHUTDOWN_FUNCTION (protobuf)
 
static PHP_RINIT_FUNCTION (protobuf)
 
static PHP_RSHUTDOWN_FUNCTION (protobuf)
 
 STD_PHP_INI_ENTRY ("protobuf.keep_descriptor_pool_after_request", "0", PHP_INI_ALL, OnUpdateBool, keep_descriptor_pool_after_request, zend_protobuf_globals, protobuf_globals)
 

Variables

HashTable descriptors
 
zval generated_pool
 
upb_symtabglobal_symtab
 
zend_bool keep_descriptor_pool_after_request
 
HashTable name_enum_cache
 
HashTable name_msg_cache
 
HashTable object_cache
 
static const zend_module_dep protobuf_deps []
 
zend_function_entry protobuf_functions []
 
zend_module_entry protobuf_module_entry
 

Macro Definition Documentation

◆ PROTOBUF_G

#define PROTOBUF_G (   v)    ZEND_MODULE_GLOBALS_ACCESSOR(protobuf, v)

Definition at line 53 of file protobuf/php/ext/google/protobuf/protobuf.c.

Function Documentation

◆ Descriptors_Add()

void Descriptors_Add ( zend_object *  desc)

Definition at line 210 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ free_protobuf_globals()

void free_protobuf_globals ( zend_protobuf_globals *  globals)

Definition at line 85 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ get_generated_pool()

const zval* get_generated_pool ( )

Definition at line 94 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ NameMap_AddEnum()

void NameMap_AddEnum ( const upb_enumdef e)

Definition at line 255 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ NameMap_AddMessage()

void NameMap_AddMessage ( const upb_msgdef m)

Definition at line 249 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ NameMap_GetEnum()

const upb_enumdef* NameMap_GetEnum ( zend_class_entry *  ce)

Definition at line 285 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ NameMap_GetMessage()

const upb_msgdef* NameMap_GetMessage ( zend_class_entry *  ce)

Definition at line 261 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ ObjCache_Add()

void ObjCache_Add ( const void *  upb_obj,
zend_object *  php_obj 
)

Definition at line 219 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ ObjCache_Delete()

void ObjCache_Delete ( const void *  upb_obj)

Definition at line 224 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ ObjCache_Get()

bool ObjCache_Get ( const void *  upb_obj,
zval *  val 
)

Definition at line 232 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ PHP_GINIT_FUNCTION()

static PHP_GINIT_FUNCTION ( protobuf  )
static

Definition at line 161 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ PHP_GSHUTDOWN_FUNCTION()

static PHP_GSHUTDOWN_FUNCTION ( protobuf  )
static

Definition at line 155 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ PHP_MSHUTDOWN_FUNCTION()

static PHP_MSHUTDOWN_FUNCTION ( protobuf  )
static

Definition at line 322 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ PHP_RINIT_FUNCTION()

static PHP_RINIT_FUNCTION ( protobuf  )
static

PHP_RINIT_FUNCTION(protobuf)

This function is run at the beginning of processing each request.

Definition at line 171 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ PHP_RSHUTDOWN_FUNCTION()

static PHP_RSHUTDOWN_FUNCTION ( protobuf  )
static

PHP_RSHUTDOWN_FUNCTION(protobuf)

This function is run at the end of processing each request.

Definition at line 193 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ STD_PHP_INI_ENTRY()

STD_PHP_INI_ENTRY ( "protobuf.keep_descriptor_pool_after_request"  ,
"0"  ,
PHP_INI_ALL  ,
OnUpdateBool  ,
keep_descriptor_pool_after_request  ,
zend_protobuf_globals  ,
protobuf_globals   
)

Definition at line 305 of file protobuf/php/ext/google/protobuf/protobuf.c.

Variable Documentation

◆ descriptors

HashTable descriptors

Definition at line 82 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ generated_pool

zval generated_pool

Definition at line 63 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ global_symtab

upb_symtab* global_symtab

Definition at line 69 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ keep_descriptor_pool_after_request

zend_bool keep_descriptor_pool_after_request

Definition at line 57 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ name_enum_cache

HashTable name_enum_cache

Definition at line 76 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ name_msg_cache

HashTable name_msg_cache

Definition at line 75 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ object_cache

HashTable object_cache

Definition at line 72 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ protobuf_deps

const zend_module_dep protobuf_deps[]
static
Initial value:
= {
ZEND_MOD_END
}

Definition at line 299 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ protobuf_functions

zend_function_entry protobuf_functions[]
Initial value:
= {
ZEND_FE_END
}

Definition at line 295 of file protobuf/php/ext/google/protobuf/protobuf.c.

◆ protobuf_module_entry

zend_module_entry protobuf_module_entry
Initial value:
= {
STANDARD_MODULE_HEADER_EX,
NULL,
"protobuf",
PHP_MINIT(protobuf),
PHP_MSHUTDOWN(protobuf),
PHP_RINIT(protobuf),
PHP_RSHUTDOWN(protobuf),
NULL,
PHP_MODULE_GLOBALS(protobuf),
PHP_GINIT(protobuf),
PHP_GSHUTDOWN(protobuf),
NULL,
STANDARD_MODULE_PROPERTIES_EX
}

Definition at line 327 of file protobuf/php/ext/google/protobuf/protobuf.c.

google::protobuf
Definition: bloaty/third_party/protobuf/benchmarks/util/data_proto2_to_proto3_util.h:12
protobuf_deps
static const zend_module_dep protobuf_deps[]
Definition: protobuf/php/ext/google/protobuf/protobuf.c:299
PHP_PROTOBUF_VERSION
#define PHP_PROTOBUF_VERSION
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:40
protobuf_functions
zend_function_entry protobuf_functions[]
Definition: protobuf/php/ext/google/protobuf/protobuf.c:295


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:27