From 0068bdb65a1b96c143189170811d004aa8bf0cd2 Mon Sep 17 00:00:00 2001
From: Stanley Cheung <stanleycheung@google.com>
Date: Mon, 8 Aug 2016 20:17:51 -0700
Subject: [PATCH] php7: fix ubuntu compile error

---
 src/php/ext/grpc/php7_wrapper.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/php/ext/grpc/php7_wrapper.h b/src/php/ext/grpc/php7_wrapper.h
index fd8d35636f..0d40e82507 100644
--- a/src/php/ext/grpc/php7_wrapper.h
+++ b/src/php/ext/grpc/php7_wrapper.h
@@ -143,7 +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) \
-  zval _stack_zval_##pzv; \
+  static zval _stack_zval_##pzv; \
   pzv = &(_stack_zval_##pzv)
 #define PHP_GRPC_DELREF(zv)
 
-- 
GitLab