summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/array.c8
-rw-r--r--ext/standard/php_array.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index b132b5d6bd..e957fb1b94 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -1966,7 +1966,7 @@ PHP_FUNCTION(array_slice)
/* }}} */
-PHPAPI int php_array_merge(HashTable *dest, HashTable *src, int recursive)
+PHPAPI int php_array_merge(HashTable *dest, HashTable *src, int recursive TSRMLS_DC)
{
zval **src_entry,
**dest_entry;
@@ -1984,13 +1984,13 @@ PHPAPI int php_array_merge(HashTable *dest, HashTable *src, int recursive)
(void **)&dest_entry) == SUCCESS) {
if (*src_entry == *dest_entry) {
zend_error(E_WARNING, "%s(): recursion detected",
- get_active_function_name());
+ get_active_function_name(TSRMLS_C));
return 0;
}
convert_to_array_ex(dest_entry);
convert_to_array_ex(src_entry);
if (!php_array_merge(Z_ARRVAL_PP(dest_entry),
- Z_ARRVAL_PP(src_entry), recursive))
+ Z_ARRVAL_PP(src_entry), recursive TSRMLS_CC))
return 0;
} else {
(*src_entry)->refcount++;
@@ -2036,7 +2036,7 @@ static void php_array_merge_wrapper(INTERNAL_FUNCTION_PARAMETERS, int recursive)
for (i=0; i<argc; i++) {
SEPARATE_ZVAL(args[i]);
convert_to_array_ex(args[i]);
- php_array_merge(Z_ARRVAL_P(return_value), Z_ARRVAL_PP(args[i]), recursive);
+ php_array_merge(Z_ARRVAL_P(return_value), Z_ARRVAL_PP(args[i]), recursive TSRMLS_CC);
}
efree(args);
diff --git a/ext/standard/php_array.h b/ext/standard/php_array.h
index 0ef979c550..60daa1fe53 100644
--- a/ext/standard/php_array.h
+++ b/ext/standard/php_array.h
@@ -83,7 +83,7 @@ PHP_FUNCTION(array_key_exists);
PHP_FUNCTION(array_chunk);
HashTable* php_splice(HashTable *, int, int, zval ***, int, HashTable **);
-PHPAPI int php_array_merge(HashTable *dest, HashTable *src, int recursive);
+PHPAPI int php_array_merge(HashTable *dest, HashTable *src, int recursive TSRMLS_DC);
int multisort_compare(const void *a, const void *b TSRMLS_DC);
typedef struct {