summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-04-08 14:30:47 +0800
committerXinchen Hui <laruence@php.net>2015-04-08 14:30:47 +0800
commitf23f7dfed03e67c9b5cca076e24ccf9f7c761674 (patch)
tree6853c43a730c31b1ecce3978939598bf8a1168d3 /ext/standard/array.c
parent54e8c91614a682a75256a61fed7f1c3b324e9e12 (diff)
downloadphp-git-f23f7dfed03e67c9b5cca076e24ccf9f7c761674.tar.gz
Use new macros
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 536771c53d..311f4f272d 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -3313,7 +3313,7 @@ PHP_FUNCTION(array_unique)
php_set_compare_func(sort_type);
- ZVAL_ARR(return_value, zend_array_dup(Z_ARRVAL_P(array)));
+ RETVAL_ARR(zend_array_dup(Z_ARRVAL_P(array)));
if (Z_ARRVAL_P(array)->nNumOfElements <= 1) { /* nothing to do */
return;
@@ -3668,7 +3668,7 @@ static void php_array_intersect(INTERNAL_FUNCTION_PARAMETERS, int behavior, int
}
/* copy the argument array */
- ZVAL_ARR(return_value, zend_array_dup(Z_ARRVAL(args[0])));
+ RETVAL_ARR(zend_array_dup(Z_ARRVAL(args[0])));
/* go through the lists and look for common values */
while (Z_TYPE(ptrs[0]->val) != IS_UNDEF) {
@@ -4087,7 +4087,7 @@ static void php_array_diff(INTERNAL_FUNCTION_PARAMETERS, int behavior, int data_
}
/* copy the argument array */
- ZVAL_ARR(return_value, zend_array_dup(Z_ARRVAL(args[0])));
+ RETVAL_ARR(zend_array_dup(Z_ARRVAL(args[0])));
/* go through the lists and look for values of ptr[0] that are not in the others */
while (Z_TYPE(ptrs[0]->val) != IS_UNDEF) {