From 63d7df3e2f37fa3e0acb1949f7151acfaf07e3da Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Mon, 22 Sep 2003 23:19:17 +0000 Subject: [PATCH] improve the fix for #25494. If more then one bad parameter is passed an warning for all will be emitted. --- ext/standard/array.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ext/standard/array.c b/ext/standard/array.c index eae2cf6b90..dd160964eb 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2195,7 +2195,7 @@ PHPAPI int php_array_merge(HashTable *dest, HashTable *src, int recursive TSRMLS static void php_array_merge_wrapper(INTERNAL_FUNCTION_PARAMETERS, int recursive) { zval ***args = NULL; - int argc, i; + int argc, i, params_ok = 1; /* Get the argument count and check it */ argc = ZEND_NUM_ARGS(); @@ -2210,13 +2210,16 @@ static void php_array_merge_wrapper(INTERNAL_FUNCTION_PARAMETERS, int recursive) WRONG_PARAM_COUNT; } - for (i=0; i