summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 43cadb147a..74aa8c52ca 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -253,7 +253,9 @@ plain_var:
zend_symtable_str_exists(symtable1, index, index_len)) {
zval_ptr_dtor(&gpc_element);
} else {
- gpc_element_p = zend_symtable_str_update_ind(symtable1, index, index_len, &gpc_element);
+ zend_string *key = zend_string_init_interned(index, index_len, 0);
+ gpc_element_p = zend_symtable_update_ind(symtable1, key, &gpc_element);
+ zend_string_release(key);
}
}
}