aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2016-08-09 12:04:49 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2016-08-09 21:45:00 -0700
commit83b34c2285d104ab60a40e6ad88cc32c5815e7f7 (patch)
tree2c8905bdfb582272294593fa1f47505bc9126567
parent0068bdb65a1b96c143189170811d004aa8bf0cd2 (diff)
php: use emalloc to replicate MAKE_STD_ZVAL
-rw-r--r--src/php/ext/grpc/php7_wrapper.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/php/ext/grpc/php7_wrapper.h b/src/php/ext/grpc/php7_wrapper.h
index 0d40e82507..1d7824113f 100644
--- a/src/php/ext/grpc/php7_wrapper.h
+++ b/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) \