mirror of
https://github.com/php/php-src.git
synced 2025-01-13 06:24:18 +08:00
In case the string can't be interned it must not be released
This commit is contained in:
parent
70b7950a75
commit
015e5dc43b
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user