In case the string can't be interned it must not be released

This commit is contained in:
Dmitry Stogov 2014-04-01 14:35:34 +04:00
parent 70b7950a75
commit 015e5dc43b

View File

@ -6239,7 +6239,9 @@ void zend_do_indirect_references(znode *result, const znode *num_references, zno
if (CG(active_op_array)->scope && CG(active_op_array)->this_var == -1) {
zend_string *key = STR_INIT("this", sizeof("this")-1, 0);
CG(active_op_array)->this_var = lookup_cv(CG(active_op_array), key TSRMLS_CC);
STR_RELEASE(key);
if (CG(active_op_array)->vars[EX_VAR_TO_NUM(CG(active_op_array)->this_var)] != key) {
STR_RELEASE(key);
}
}
}
/* }}} */