From 5d33024a5dc40a45c986deb37282e54e80058b6f Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 10 Jan 2019 10:55:19 +0100 Subject: Fixed bug #77439 --- main/php_variables.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main/php_variables.c') 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); } } } -- cgit v1.2.1