Skip to content

Commit

Permalink
Init gc value for php5 zval_get_string
Browse files Browse the repository at this point in the history
  • Loading branch information
yatsukhnenko committed Jul 28, 2017
1 parent 8dcaa48 commit 37f5693
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 37f5693

Please sign in to comment.