diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-01-10 10:55:19 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-01-10 10:57:04 +0100 |
commit | 5d33024a5dc40a45c986deb37282e54e80058b6f (patch) | |
tree | e201d561e2f6e4cc91bc901526161b9339e02638 /main/php_variables.c | |
parent | 7a88f89a90902c4393f96616cb86137309d173af (diff) | |
download | php-git-5d33024a5dc40a45c986deb37282e54e80058b6f.tar.gz |
Fixed bug #77439
Diffstat (limited to 'main/php_variables.c')
-rw-r--r-- | main/php_variables.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/php_variables.c b/main/php_variables.c index a32e0e26cb..916fc1295b 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -218,6 +218,8 @@ PHPAPI void php_register_variable_ex(char *var_name, zval *val, zval *track_vars if (Z_TYPE_P(gpc_element_p) != IS_ARRAY) { zval_ptr_dtor(gpc_element_p); array_init(gpc_element_p); + } else { + SEPARATE_ARRAY(gpc_element_p); } } } |