Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37f5693

Browse files
committed
Init gc value for php5 zval_get_string
1 parent 8dcaa48 commit 37f5693

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ zval_get_string(zval *op)
328328
{
329329
zend_string *zstr = ecalloc(1, sizeof(zend_string));
330330

331+
zstr->gc = 0;
331332
zstr->val = "";
332333
zstr->len = 0;
333334
switch (Z_TYPE_P(op)) {

0 commit comments

Comments
 (0)