if (!zobj->ce->default_properties_count && properties == zobj->properties) {
/* fast copy */
- ZVAL_ARR(return_value, zend_array_dup(properties));
+ RETURN_ARR(zend_array_dup(properties));
} else {
array_init_size(return_value, zend_hash_num_elements(properties));
{
zend_array *symbol_table = zend_rebuild_symbol_table();
- ZVAL_ARR(return_value, zend_array_dup(symbol_table));
+ RETURN_ARR(zend_array_dup(symbol_table));
}
/* }}} */
if ((cookies = zend_hash_str_find(Z_OBJPROP_P(getThis()), "_cookies", sizeof("_cookies")-1)) != NULL &&
Z_TYPE_P(cookies) == IS_ARRAY) {
- ZVAL_ARR(return_value, zend_array_dup(Z_ARRVAL_P(cookies)));
+ RETURN_ARR(zend_array_dup(Z_ARRVAL_P(cookies)));
} else {
array_init(return_value);
}
zval *object = getThis();
spl_array_object *intern = Z_SPLARRAY_P(object);
- ZVAL_ARR(return_value, zend_array_dup(spl_array_get_hash_table(intern, 0)));
+ RETURN_ARR(zend_array_dup(spl_array_get_hash_table(intern, 0)));
} /* }}} */
static HashTable *spl_array_get_properties(zval *object) /* {{{ */
zval *object = getThis(), *array;
spl_array_object *intern = Z_SPLARRAY_P(object);
- ZVAL_ARR(return_value, zend_array_dup(spl_array_get_hash_table(intern, 0)));
+ RETVAL_ARR(zend_array_dup(spl_array_get_hash_table(intern, 0)));
if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &array) == FAILURE) {
return;
}
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;
}
/* 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) {
}
/* 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) {
}
if (return_array) {
- ZVAL_ARR(return_value, zend_array_dup(Z_ARRVAL_P(agent)));
+ RETVAL_ARR(zend_array_dup(Z_ARRVAL_P(agent)));
}
else {
object_init(return_value);