summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r--Zend/zend_operators.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index 35ab1c0197..38963c8c61 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -332,8 +332,7 @@ static void convert_scalar_to_array(zval *op, int type)
zval *entry = (zval *) emalloc(sizeof(zval));
*entry = *op;
- entry->refcount = 1;
- entry->EA = 0;
+ INIT_PZVAL(entry);
switch (type) {
case IS_ARRAY: