php: use emalloc to replicate MAKE_STD_ZVAL

pull/7674/head
Stanley Cheung 9 years ago
parent 0068bdb65a
commit 83b34c2285
  1. 3
      src/php/ext/grpc/php7_wrapper.h

@ -143,8 +143,7 @@ static inline int php_grpc_zend_hash_find(HashTable *ht, char *key, int len,
#define PHP_GRPC_RETURN_STRING(val, dup) RETURN_STRING(val)
#define PHP_GRPC_MAKE_STD_ZVAL(pzv) \
static zval _stack_zval_##pzv; \
pzv = &(_stack_zval_##pzv)
pzv = (zval *)emalloc(sizeof(zval));
#define PHP_GRPC_DELREF(zv)
#define PHP_GRPC_WRAP_OBJECT_START(name) \

Loading…
Cancel
Save