mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use interned strings as variable names
This commit is contained in:
parent
7cc6f60134
commit
cc6a41fad1
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue