summaryrefslogtreecommitdiff
path: root/ext/spl/spl_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/spl_array.c')
-rwxr-xr-xext/spl/spl_array.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index 311e893ba3..90b12b6967 100755
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -893,8 +893,7 @@ SPL_METHOD(Array, current)
if (zend_hash_get_current_data_ex(aht, (void **) &entry, &intern->pos) == FAILURE) {
return;
}
- *return_value = **entry;
- zval_copy_ctor(return_value);
+ RETVAL_ZVAL(*entry, 1, 0);
}
/* }}} */