summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-03-11 00:44:34 +0000
committerMarcus Boerger <helly@php.net>2005-03-11 00:44:34 +0000
commitb924ef879671fe53f47620ebf360d0c7e3785cc9 (patch)
treecf7a6d3ab8b74ce9d9a50d2aae92112289288488 /ext
parent1d85c3fe80b3b354e66561e430bf3f950a567536 (diff)
downloadphp-git-b924ef879671fe53f47620ebf360d0c7e3785cc9.tar.gz
- Don't touch refcount/is_ref
Diffstat (limited to 'ext')
-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);
}
/* }}} */