Macros | Functions
php7_wrapper.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PHP_GRPC_ADD_BOOL_TO_ARRAY(val, key, key_len, str)   add_assoc_bool_ex(val, key, key_len - 1, str);
 
#define PHP_GRPC_ADD_LONG_TO_ARRAY(val, key, key_len, str)   add_assoc_long_ex(val, key, key_len - 1, str);
 
#define PHP_GRPC_ADD_LONG_TO_RETVAL(val, key, key_len, str)   add_assoc_long_ex(val, key, key_len, str);
 
#define php_grpc_add_next_index_stringl(data, str, len, b)   add_next_index_stringl(data, str, len)
 
#define php_grpc_add_property_string(arg, name, context, b)   add_property_string(arg, name, context)
 
#define php_grpc_add_property_stringl(res, name, str, len, b)   add_property_stringl(res, name, str, len)
 
#define php_grpc_add_property_zval(res, name, val)
 
#define PHP_GRPC_ADD_STRING_TO_ARRAY(val, key, key_len, str, dup)   add_assoc_string_ex(val, key, key_len - 1, str);
 
#define PHP_GRPC_ALLOC_CLASS_OBJECT(class_object)
 
#define PHP_GRPC_BVAL_IS_TRUE(zv)   Z_TYPE_P(zv) == IS_TRUE
 
#define PHP_GRPC_DECLARE_OBJECT_HANDLER(handler_name)   static zend_object_handlers handler_name;
 
#define PHP_GRPC_DELREF(zv)
 
#define PHP_GRPC_FREE_CLASS_OBJECT(class_object, handler)
 
#define PHP_GRPC_FREE_STD_ZVAL(pzv)   efree(pzv);
 
#define PHP_GRPC_FREE_WRAPPED_FUNC_END()
 
#define PHP_GRPC_FREE_WRAPPED_FUNC_START(class_object)
 
#define PHP_GRPC_GET_CLASS_ENTRY(object)   Z_OBJ_P(object)->ce
 
#define PHP_GRPC_GET_WRAPPED_OBJECT(class_object, zv)   class_object##_from_obj(Z_OBJ_P((zv)))
 
#define PHP_GRPC_HASH_FOREACH_END()   } ZEND_HASH_FOREACH_END();
 
#define PHP_GRPC_HASH_FOREACH_LONG_KEY_VAL_START(ht, key, key_type, index, data)
 
#define PHP_GRPC_HASH_FOREACH_STR_KEY_VAL_START(ht, key, key_type, data)
 
#define PHP_GRPC_HASH_FOREACH_VAL_START(ht, data)   ZEND_HASH_FOREACH_VAL(ht, data) {
 
#define PHP_GRPC_HASH_VALPTR_TO_VAL(data)   Z_PTR_P(data);
 
#define PHP_GRPC_INIT_HANDLER(class_object, handler_name)
 
#define php_grpc_int   size_t
 
#define php_grpc_long   zend_long
 
#define PHP_GRPC_MAKE_STD_ZVAL(pzv)   pzv = (zval *)emalloc(sizeof(zval));
 
#define PHP_GRPC_PERSISTENT_LIST_FIND(plist, key, len, rsrc)   (rsrc = zend_hash_str_find_ptr(plist, key, len)) != NULL
 
#define PHP_GRPC_PERSISTENT_LIST_SIZE(plist)   zend_array_count(plist)
 
#define PHP_GRPC_PERSISTENT_LIST_UPDATE(plist, key, len, rsrc)
 
#define PHP_GRPC_RETURN_STRING(val, dup)   RETURN_STRING(val)
 
#define PHP_GRPC_RETVAL_STRING(val, dup)   RETVAL_STRING(val)
 
#define PHP_GRPC_SERIALIZED_BUF_LEN(buf)   ZSTR_LEN(buf.s)
 
#define PHP_GRPC_SERIALIZED_BUF_STR(buf)   ZSTR_VAL(buf.s)
 
#define PHP_GRPC_SHA1Update(cxt, str, len)   PHP_SHA1Update(cxt, (unsigned char *)str, len)
 
#define php_grpc_ulong   zend_ulong
 
#define PHP_GRPC_VAR_SERIALIZE(buf, zv, hash)   php_var_serialize(buf, zv, hash)
 
#define PHP_GRPC_WRAP_OBJECT_END(name)
 
#define PHP_GRPC_WRAP_OBJECT_START(name)   typedef struct name {
 
#define php_grpc_zend_object   zend_object*
 
#define php_grpc_zend_resource   zend_resource
 
#define RETURN_DESTROY_ZVAL(val)
 
#define WRAPPED_OBJECT_FROM_OBJ(class_object, obj)   class_object##_from_obj(obj);
 

Functions

static int php_grpc_zend_hash_del (HashTable *ht, char *key, int len)
 
static int php_grpc_zend_hash_find (HashTable *ht, char *key, int len, void **value)
 

Macro Definition Documentation

◆ PHP_GRPC_ADD_BOOL_TO_ARRAY

#define PHP_GRPC_ADD_BOOL_TO_ARRAY (   val,
  key,
  key_len,
  str 
)    add_assoc_bool_ex(val, key, key_len - 1, str);

Definition at line 50 of file php7_wrapper.h.

◆ PHP_GRPC_ADD_LONG_TO_ARRAY

#define PHP_GRPC_ADD_LONG_TO_ARRAY (   val,
  key,
  key_len,
  str 
)    add_assoc_long_ex(val, key, key_len - 1, str);

Definition at line 48 of file php7_wrapper.h.

◆ PHP_GRPC_ADD_LONG_TO_RETVAL

#define PHP_GRPC_ADD_LONG_TO_RETVAL (   val,
  key,
  key_len,
  str 
)    add_assoc_long_ex(val, key, key_len, str);

Definition at line 52 of file php7_wrapper.h.

◆ php_grpc_add_next_index_stringl

#define php_grpc_add_next_index_stringl (   data,
  str,
  len,
  b 
)    add_next_index_stringl(data, str, len)

Definition at line 37 of file php7_wrapper.h.

◆ php_grpc_add_property_string

#define php_grpc_add_property_string (   arg,
  name,
  context,
  b 
)    add_property_string(arg, name, context)

Definition at line 28 of file php7_wrapper.h.

◆ php_grpc_add_property_stringl

#define php_grpc_add_property_stringl (   res,
  name,
  str,
  len,
  b 
)    add_property_stringl(res, name, str, len)

Definition at line 30 of file php7_wrapper.h.

◆ php_grpc_add_property_zval

#define php_grpc_add_property_zval (   res,
  name,
  val 
)
Value:
do { \
zval tmp; \
tmp = *val; \
add_property_zval(res, name, &tmp); \
} while(0)

Definition at line 32 of file php7_wrapper.h.

◆ PHP_GRPC_ADD_STRING_TO_ARRAY

#define PHP_GRPC_ADD_STRING_TO_ARRAY (   val,
  key,
  key_len,
  str,
  dup 
)    add_assoc_string_ex(val, key, key_len - 1, str);

Definition at line 46 of file php7_wrapper.h.

◆ PHP_GRPC_ALLOC_CLASS_OBJECT

#define PHP_GRPC_ALLOC_CLASS_OBJECT (   class_object)
Value:
class_object *intern; \
intern = ecalloc(1, sizeof(class_object) + \
zend_object_properties_size(class_type));

Definition at line 77 of file php7_wrapper.h.

◆ PHP_GRPC_BVAL_IS_TRUE

#define PHP_GRPC_BVAL_IS_TRUE (   zv)    Z_TYPE_P(zv) == IS_TRUE

Definition at line 123 of file php7_wrapper.h.

◆ PHP_GRPC_DECLARE_OBJECT_HANDLER

#define PHP_GRPC_DECLARE_OBJECT_HANDLER (   handler_name)    static zend_object_handlers handler_name;

Definition at line 146 of file php7_wrapper.h.

◆ PHP_GRPC_DELREF

#define PHP_GRPC_DELREF (   zv)

Definition at line 45 of file php7_wrapper.h.

◆ PHP_GRPC_FREE_CLASS_OBJECT

#define PHP_GRPC_FREE_CLASS_OBJECT (   class_object,
  handler 
)
Value:
intern->std.handlers = &handler; \
return &intern->std;

Definition at line 82 of file php7_wrapper.h.

◆ PHP_GRPC_FREE_STD_ZVAL

#define PHP_GRPC_FREE_STD_ZVAL (   pzv)    efree(pzv);

Definition at line 44 of file php7_wrapper.h.

◆ PHP_GRPC_FREE_WRAPPED_FUNC_END

#define PHP_GRPC_FREE_WRAPPED_FUNC_END ( )
Value:
zend_object_std_dtor(&p->std); \
}

Definition at line 73 of file php7_wrapper.h.

◆ PHP_GRPC_FREE_WRAPPED_FUNC_START

#define PHP_GRPC_FREE_WRAPPED_FUNC_START (   class_object)
Value:
static void free_##class_object(zend_object *object) { \
class_object *p = WRAPPED_OBJECT_FROM_OBJ(class_object, object)

Definition at line 70 of file php7_wrapper.h.

◆ PHP_GRPC_GET_CLASS_ENTRY

#define PHP_GRPC_GET_CLASS_ENTRY (   object)    Z_OBJ_P(object)->ce

Definition at line 138 of file php7_wrapper.h.

◆ PHP_GRPC_GET_WRAPPED_OBJECT

#define PHP_GRPC_GET_WRAPPED_OBJECT (   class_object,
  zv 
)    class_object##_from_obj(Z_OBJ_P((zv)))

Definition at line 149 of file php7_wrapper.h.

◆ PHP_GRPC_HASH_FOREACH_END

#define PHP_GRPC_HASH_FOREACH_END ( )    } ZEND_HASH_FOREACH_END();

Definition at line 105 of file php7_wrapper.h.

◆ PHP_GRPC_HASH_FOREACH_LONG_KEY_VAL_START

#define PHP_GRPC_HASH_FOREACH_LONG_KEY_VAL_START (   ht,
  key,
  key_type,
  index,
  data 
)
Value:
zend_string *(zs_##key); \
ZEND_HASH_FOREACH_KEY_VAL(ht, index, zs_##key, data) { \
if ((zs_##key) == NULL) {key = NULL; key_type = HASH_KEY_IS_LONG;} \
else {key = (zs_##key)->val; key_type = HASH_KEY_IS_STRING;}

Definition at line 98 of file php7_wrapper.h.

◆ PHP_GRPC_HASH_FOREACH_STR_KEY_VAL_START

#define PHP_GRPC_HASH_FOREACH_STR_KEY_VAL_START (   ht,
  key,
  key_type,
  data 
)
Value:
zend_string *(zs_##key); \
ZEND_HASH_FOREACH_STR_KEY_VAL(ht, (zs_##key), data) { \
if ((zs_##key) == NULL) {key = NULL; key_type = HASH_KEY_IS_LONG;} \
else {key = (zs_##key)->val; key_type = HASH_KEY_IS_STRING;}

Definition at line 89 of file php7_wrapper.h.

◆ PHP_GRPC_HASH_FOREACH_VAL_START

#define PHP_GRPC_HASH_FOREACH_VAL_START (   ht,
  data 
)    ZEND_HASH_FOREACH_VAL(ht, data) {

Definition at line 86 of file php7_wrapper.h.

◆ PHP_GRPC_HASH_VALPTR_TO_VAL

#define PHP_GRPC_HASH_VALPTR_TO_VAL (   data)    Z_PTR_P(data);

Definition at line 95 of file php7_wrapper.h.

◆ PHP_GRPC_INIT_HANDLER

#define PHP_GRPC_INIT_HANDLER (   class_object,
  handler_name 
)
Value:
memcpy(&handler_name, zend_get_std_object_handlers(), \
sizeof(zend_object_handlers)); \
handler_name.offset = XtOffsetOf(class_object, std); \
handler_name.free_obj = free_##class_object

Definition at line 140 of file php7_wrapper.h.

◆ php_grpc_int

#define php_grpc_int   size_t

Definition at line 24 of file php7_wrapper.h.

◆ php_grpc_long

#define php_grpc_long   zend_long

Definition at line 25 of file php7_wrapper.h.

◆ PHP_GRPC_MAKE_STD_ZVAL

#define PHP_GRPC_MAKE_STD_ZVAL (   pzv)    pzv = (zval *)emalloc(sizeof(zval));

Definition at line 42 of file php7_wrapper.h.

◆ PHP_GRPC_PERSISTENT_LIST_FIND

#define PHP_GRPC_PERSISTENT_LIST_FIND (   plist,
  key,
  len,
  rsrc 
)    (rsrc = zend_hash_str_find_ptr(plist, key, len)) != NULL

Definition at line 130 of file php7_wrapper.h.

◆ PHP_GRPC_PERSISTENT_LIST_SIZE

#define PHP_GRPC_PERSISTENT_LIST_SIZE (   plist)    zend_array_count(plist)

Definition at line 135 of file php7_wrapper.h.

◆ PHP_GRPC_PERSISTENT_LIST_UPDATE

#define PHP_GRPC_PERSISTENT_LIST_UPDATE (   plist,
  key,
  len,
  rsrc 
)
Value:
zend_hash_str_update_mem(plist, key, len, rsrc, \

Definition at line 132 of file php7_wrapper.h.

◆ PHP_GRPC_RETURN_STRING

#define PHP_GRPC_RETURN_STRING (   val,
  dup 
)    RETURN_STRING(val)

Definition at line 41 of file php7_wrapper.h.

◆ PHP_GRPC_RETVAL_STRING

#define PHP_GRPC_RETVAL_STRING (   val,
  dup 
)    RETVAL_STRING(val)

Definition at line 40 of file php7_wrapper.h.

◆ PHP_GRPC_SERIALIZED_BUF_LEN

#define PHP_GRPC_SERIALIZED_BUF_LEN (   buf)    ZSTR_LEN(buf.s)

Definition at line 127 of file php7_wrapper.h.

◆ PHP_GRPC_SERIALIZED_BUF_STR

#define PHP_GRPC_SERIALIZED_BUF_STR (   buf)    ZSTR_VAL(buf.s)

Definition at line 126 of file php7_wrapper.h.

◆ PHP_GRPC_SHA1Update

#define PHP_GRPC_SHA1Update (   cxt,
  str,
  len 
)    PHP_SHA1Update(cxt, (unsigned char *)str, len)

Definition at line 128 of file php7_wrapper.h.

◆ php_grpc_ulong

#define php_grpc_ulong   zend_ulong

Definition at line 26 of file php7_wrapper.h.

◆ PHP_GRPC_VAR_SERIALIZE

#define PHP_GRPC_VAR_SERIALIZE (   buf,
  zv,
  hash 
)    php_var_serialize(buf, zv, hash)

Definition at line 124 of file php7_wrapper.h.

◆ PHP_GRPC_WRAP_OBJECT_END

#define PHP_GRPC_WRAP_OBJECT_END (   name)
Value:
zend_object std; \
} name;

Definition at line 63 of file php7_wrapper.h.

◆ PHP_GRPC_WRAP_OBJECT_START

#define PHP_GRPC_WRAP_OBJECT_START (   name)    typedef struct name {

Definition at line 61 of file php7_wrapper.h.

◆ php_grpc_zend_object

#define php_grpc_zend_object   zend_object*

Definition at line 27 of file php7_wrapper.h.

◆ php_grpc_zend_resource

#define php_grpc_zend_resource   zend_resource

Definition at line 121 of file php7_wrapper.h.

◆ RETURN_DESTROY_ZVAL

#define RETURN_DESTROY_ZVAL (   val)
Value:
RETVAL_ZVAL(val, false /* Don't execute copy constructor */, \
true /* Dealloc original before returning */); \
efree(val); \
return

Definition at line 55 of file php7_wrapper.h.

◆ WRAPPED_OBJECT_FROM_OBJ

#define WRAPPED_OBJECT_FROM_OBJ (   class_object,
  obj 
)    class_object##_from_obj(obj);

Definition at line 67 of file php7_wrapper.h.

Function Documentation

◆ php_grpc_zend_hash_del()

static int php_grpc_zend_hash_del ( HashTable *  ht,
char *  key,
int  len 
)
inlinestatic

Definition at line 118 of file php7_wrapper.h.

◆ php_grpc_zend_hash_find()

static int php_grpc_zend_hash_find ( HashTable *  ht,
char *  key,
int  len,
void **  value 
)
inlinestatic

Definition at line 107 of file php7_wrapper.h.

setup.name
name
Definition: setup.py:542
xds_manager.p
p
Definition: xds_manager.py:60
memcpy
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
data
char data[kBufferLength]
Definition: abseil-cpp/absl/strings/internal/str_format/float_conversion.cc:1006
key
const char * key
Definition: hpack_parser_table.cc:164
client.handler
handler
Definition: examples/python/multiprocessing/client.py:87
intern
upb_strtable_uninit & intern
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/map.c:222
index
int index
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:1184
std
Definition: grpcpp/impl/codegen/async_unary_call.h:407
WRAPPED_OBJECT_FROM_OBJ
#define WRAPPED_OBJECT_FROM_OBJ(class_object, obj)
Definition: php7_wrapper.h:67
php_grpc_zend_resource
#define php_grpc_zend_resource
Definition: php7_wrapper.h:121
len
int len
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:46
autogen_x86imm.tmp
tmp
Definition: autogen_x86imm.py:12
key_type
upb_fieldtype_t key_type
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:1071


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:02:20