Functions | Variables
bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.c File Reference
#include "protobuf.h"
#include <zend_hash.h>
Include dependency graph for bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.c:

Go to the source code of this file.

Functions

void add_ce_obj (const void *ce, PHP_PROTO_HASHTABLE_VALUE value)
 
void add_def_obj (const void *def, PHP_PROTO_HASHTABLE_VALUE value)
 
void add_proto_obj (const char *proto, PHP_PROTO_HASHTABLE_VALUE value)
 
static void add_to_list (HashTable *t, void *value)
 
static void add_to_strtable (HashTable *t, const char *key, int key_size, void *value)
 
static void add_to_table (HashTable *t, const void *def, void *value)
 
bool class_added (const void *ce)
 
static bool exist_in_table (const HashTable *t, const void *def)
 
PHP_PROTO_HASHTABLE_VALUE get_ce_obj (const void *ce)
 
PHP_PROTO_HASHTABLE_VALUE get_def_obj (const void *def)
 
static void * get_from_strtable (const HashTable *t, const char *key, int key_size)
 
static void * get_from_table (const HashTable *t, const void *def)
 
PHP_PROTO_HASHTABLE_VALUE get_proto_obj (const char *proto)
 
bool is_reserved_name (const char *name)
 
static PHP_GINIT_FUNCTION (protobuf)
 
static PHP_GSHUTDOWN_FUNCTION (protobuf)
 
static PHP_MINIT_FUNCTION (protobuf)
 
static PHP_MSHUTDOWN_FUNCTION (protobuf)
 
static PHP_RINIT_FUNCTION (protobuf)
 
static PHP_RSHUTDOWN_FUNCTION (protobuf)
 

Variables

static HashTable * ce_to_php_obj_map
 
bool is_inited_file_any
 
bool is_inited_file_api
 
bool is_inited_file_duration
 
bool is_inited_file_empty
 
bool is_inited_file_field_mask
 
bool is_inited_file_source_context
 
bool is_inited_file_struct
 
bool is_inited_file_timestamp
 
bool is_inited_file_type
 
bool is_inited_file_wrappers
 
const char *const kReservedNames []
 
const int kReservedNamesSize = 73
 
static HashTable * proto_to_php_obj_map
 
static const zend_module_dep protobuf_deps []
 
zend_function_entry protobuf_functions []
 
zend_module_entry protobuf_module_entry
 
static HashTable * reserved_names
 
static HashTable * upb_def_to_php_obj_map
 

Function Documentation

◆ add_ce_obj()

void add_ce_obj ( const void *  ce,
PHP_PROTO_HASHTABLE_VALUE  value 
)

◆ add_def_obj()

void add_def_obj ( const void *  def,
PHP_PROTO_HASHTABLE_VALUE  value 
)

◆ add_proto_obj()

void add_proto_obj ( const char *  proto,
PHP_PROTO_HASHTABLE_VALUE  value 
)

◆ add_to_list()

static void add_to_list ( HashTable *  t,
void *  value 
)
static

◆ add_to_strtable()

static void add_to_strtable ( HashTable *  t,
const char *  key,
int  key_size,
void *  value 
)
static

◆ add_to_table()

static void add_to_table ( HashTable *  t,
const void *  def,
void *  value 
)
static

◆ class_added()

bool class_added ( const void *  ce)

◆ exist_in_table()

static bool exist_in_table ( const HashTable *  t,
const void *  def 
)
static

◆ get_ce_obj()

PHP_PROTO_HASHTABLE_VALUE get_ce_obj ( const void *  ce)

◆ get_def_obj()

PHP_PROTO_HASHTABLE_VALUE get_def_obj ( const void *  def)

◆ get_from_strtable()

static void* get_from_strtable ( const HashTable *  t,
const char *  key,
int  key_size 
)
static

◆ get_from_table()

static void* get_from_table ( const HashTable *  t,
const void *  def 
)
static

◆ get_proto_obj()

PHP_PROTO_HASHTABLE_VALUE get_proto_obj ( const char *  proto)

◆ is_reserved_name()

bool is_reserved_name ( const char *  name)

◆ PHP_GINIT_FUNCTION()

static PHP_GINIT_FUNCTION ( protobuf  )
static

◆ PHP_GSHUTDOWN_FUNCTION()

static PHP_GSHUTDOWN_FUNCTION ( protobuf  )
static

◆ PHP_MINIT_FUNCTION()

static PHP_MINIT_FUNCTION ( protobuf  )
static

◆ PHP_MSHUTDOWN_FUNCTION()

static PHP_MSHUTDOWN_FUNCTION ( protobuf  )
static

◆ PHP_RINIT_FUNCTION()

static PHP_RINIT_FUNCTION ( protobuf  )
static

◆ PHP_RSHUTDOWN_FUNCTION()

static PHP_RSHUTDOWN_FUNCTION ( protobuf  )
static

Variable Documentation

◆ ce_to_php_obj_map

HashTable* ce_to_php_obj_map
static

◆ is_inited_file_any

bool is_inited_file_any

◆ is_inited_file_api

bool is_inited_file_api

◆ is_inited_file_duration

bool is_inited_file_duration

◆ is_inited_file_empty

bool is_inited_file_empty

◆ is_inited_file_field_mask

bool is_inited_file_field_mask

◆ is_inited_file_source_context

bool is_inited_file_source_context

◆ is_inited_file_struct

bool is_inited_file_struct

◆ is_inited_file_timestamp

bool is_inited_file_timestamp

◆ is_inited_file_type

bool is_inited_file_type

◆ is_inited_file_wrappers

bool is_inited_file_wrappers

◆ kReservedNames

const char* const kReservedNames[]
Initial value:
= {
"abstract", "and", "array", "as", "break",
"callable", "case", "catch", "class", "clone",
"const", "continue", "declare", "default", "die",
"do", "echo", "else", "elseif", "empty",
"enddeclare", "endfor", "endforeach", "endif", "endswitch",
"endwhile", "eval", "exit", "extends", "final",
"for", "foreach", "function", "global", "goto",
"if", "implements", "include", "include_once", "instanceof",
"insteadof", "interface", "isset", "list", "namespace",
"new", "or", "print", "private", "protected",
"public", "require", "require_once", "return", "static",
"switch", "throw", "trait", "try", "unset",
"use", "var", "while", "xor", "int",
"float", "bool", "string", "true", "false",
"null", "void", "iterable"}

Definition at line 168 of file bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.c.

◆ kReservedNamesSize

const int kReservedNamesSize = 73

◆ proto_to_php_obj_map

HashTable* proto_to_php_obj_map
static

◆ protobuf_deps

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

Definition at line 200 of file bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.c.

◆ protobuf_functions

zend_function_entry protobuf_functions[]
Initial value:
= {
ZEND_FE_END
}

Definition at line 196 of file bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.c.

◆ protobuf_module_entry

zend_module_entry protobuf_module_entry
Initial value:
= {
STANDARD_MODULE_HEADER_EX,
NULL,
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 205 of file bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.c.

◆ reserved_names

HashTable* reserved_names
static

◆ upb_def_to_php_obj_map

HashTable* upb_def_to_php_obj_map
static
google::protobuf
Definition: bloaty/third_party/protobuf/benchmarks/util/data_proto2_to_proto3_util.h:12
PHP_PROTOBUF_VERSION
#define PHP_PROTOBUF_VERSION
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:40
protobuf_deps
static const zend_module_dep protobuf_deps[]
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.c:200
protobuf_functions
zend_function_entry protobuf_functions[]
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.c:196
PHP_PROTOBUF_EXTNAME
#define PHP_PROTOBUF_EXTNAME
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:39


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