mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
fix UMR in php_register_variable_ex, reported by Stefan Esser
This commit is contained in:
parent
9c0c756417
commit
4558f06648
1 changed files with 3 additions and 0 deletions
|
@ -186,6 +186,9 @@ PHPAPI void php_register_variable_ex(char *var_name, zval *val, zval *track_vars
|
|||
MAKE_STD_ZVAL(gpc_element);
|
||||
array_init(gpc_element);
|
||||
zend_symtable_update(symtable1, escaped_index, index_len + 1, &gpc_element, sizeof(zval *), (void **) &gpc_element_p);
|
||||
} else {
|
||||
free_alloca(var_orig, use_heap);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (index != escaped_index) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue