Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-07-28 11:07:59 +0300
committerPavlo Yatsukhnenko <yatsukhnenko@gmail.com>2017-07-28 11:07:59 +0300
commit37f5693bb7d73349462fe84764589de7c98f3a2b (patch)
tree5d8676d33f256f56fbb0dab8116337c418b198ee /common.h
parent8dcaa48388c5c48992cee0df703f9b8d2c2a0d6c (diff)
Init gc value for php5 zval_get_string
Diffstat (limited to 'common.h')
-rw-r--r--common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common.h b/common.h
index 1ed857c3..dc82e87a 100644
--- a/common.h
+++ b/common.h
@@ -328,6 +328,7 @@ zval_get_string(zval *op)
{
zend_string *zstr = ecalloc(1, sizeof(zend_string));
+ zstr->gc = 0;
zstr->val = "";
zstr->len = 0;
switch (Z_TYPE_P(op)) {