diff options
author | Jani Taskinen <jani@php.net> | 2007-11-06 13:26:59 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2007-11-06 13:26:59 +0000 |
commit | 7f0ad5c1e9dd81b1a6d13239e124f8fe7d310549 (patch) | |
tree | a8aa6d1df1003bceb6ec130a3b5ec942e6a2d6d7 | |
parent | 411d34cba08b41b92c3cf5966b5575d166699101 (diff) | |
download | php-git-7f0ad5c1e9dd81b1a6d13239e124f8fe7d310549.tar.gz |
MFH: - Fixed bug #43196 (array_intersect_assoc() crashes with non-array input)
-rw-r--r-- | ext/standard/array.c | 42 | ||||
-rw-r--r-- | ext/standard/tests/array/array_intersect_assoc_error.phpt | 4 | ||||
-rw-r--r-- | ext/standard/tests/array/array_intersect_assoc_variation1.phpt | 147 | ||||
-rw-r--r-- | ext/standard/tests/array/array_intersect_assoc_variation2.phpt | 147 |
4 files changed, 186 insertions, 154 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c index 0b5b698891..2b241604d2 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2763,13 +2763,24 @@ static void php_array_intersect_key(INTERNAL_FUNCTION_PARAMETERS, int data_compa } } + if (Z_TYPE_PP(args[0]) != IS_ARRAY) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument #1 is not an array"); + RETVAL_NULL(); + goto out; + } + array_init(return_value); for (p = Z_ARRVAL_PP(args[0])->pListHead; p != NULL; p = p->pListNext) { if (p->nKeyLength == 0) { ok = 1; for (i = 1; i < argc; i++) { - if (zend_hash_index_find(Z_ARRVAL_PP(args[i]), p->h, (void**)&data) == FAILURE || + if (Z_TYPE_PP(args[i]) != IS_ARRAY) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument #%d is not an array", i + 1); + zval_dtor(return_value); + RETVAL_NULL(); + goto out; + } else if (zend_hash_index_find(Z_ARRVAL_PP(args[i]), p->h, (void**)&data) == FAILURE || (intersect_data_compare_func && intersect_data_compare_func((zval**)p->pData, data TSRMLS_CC) != 0) ) { @@ -2784,7 +2795,12 @@ static void php_array_intersect_key(INTERNAL_FUNCTION_PARAMETERS, int data_compa } else { ok = 1; for (i = 1; i < argc; i++) { - if (zend_hash_quick_find(Z_ARRVAL_PP(args[i]), p->arKey, p->nKeyLength, p->h, (void**)&data) == FAILURE || + if (Z_TYPE_PP(args[i]) != IS_ARRAY) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument #%d is not an array", i + 1); + zval_dtor(return_value); + RETVAL_NULL(); + goto out; + } else if (zend_hash_quick_find(Z_ARRVAL_PP(args[i]), p->arKey, p->nKeyLength, p->h, (void**)&data) == FAILURE || (intersect_data_compare_func && intersect_data_compare_func((zval**)p->pData, data TSRMLS_CC) != 0) ) { @@ -2798,6 +2814,7 @@ static void php_array_intersect_key(INTERNAL_FUNCTION_PARAMETERS, int data_compa } } } +out: efree(args); } /* }}} */ @@ -3164,13 +3181,24 @@ static void php_array_diff_key(INTERNAL_FUNCTION_PARAMETERS, int data_compare_ty } } + if (Z_TYPE_PP(args[0]) != IS_ARRAY) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument #1 is not an array"); + RETVAL_NULL(); + goto out; + } + array_init(return_value); for (p = Z_ARRVAL_PP(args[0])->pListHead; p != NULL; p = p->pListNext) { if (p->nKeyLength == 0) { ok = 1; for (i = 1; i < argc; i++) { - if (zend_hash_index_find(Z_ARRVAL_PP(args[i]), p->h, (void**)&data) == SUCCESS && + if (Z_TYPE_PP(args[i]) != IS_ARRAY) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument #%d is not an array", i + 1); + zval_dtor(return_value); + RETVAL_NULL(); + goto out; + } else if (zend_hash_index_find(Z_ARRVAL_PP(args[i]), p->h, (void**)&data) == SUCCESS && (!diff_data_compare_func || diff_data_compare_func((zval**)p->pData, data TSRMLS_CC) == 0) ) { @@ -3185,7 +3213,12 @@ static void php_array_diff_key(INTERNAL_FUNCTION_PARAMETERS, int data_compare_ty } else { ok = 1; for (i = 1; i < argc; i++) { - if (zend_hash_quick_find(Z_ARRVAL_PP(args[i]), p->arKey, p->nKeyLength, p->h, (void**)&data) == SUCCESS && + if (Z_TYPE_PP(args[i]) != IS_ARRAY) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument #%d is not an array", i + 1); + zval_dtor(return_value); + RETVAL_NULL(); + goto out; + } else if (zend_hash_quick_find(Z_ARRVAL_PP(args[i]), p->arKey, p->nKeyLength, p->h, (void**)&data) == SUCCESS && (!diff_data_compare_func || diff_data_compare_func((zval**)p->pData, data TSRMLS_CC) == 0) ) { @@ -3199,6 +3232,7 @@ static void php_array_diff_key(INTERNAL_FUNCTION_PARAMETERS, int data_compare_ty } } } +out: efree(args); } /* }}} */ diff --git a/ext/standard/tests/array/array_intersect_assoc_error.phpt b/ext/standard/tests/array/array_intersect_assoc_error.phpt index 91972ab177..c371071b38 100644 --- a/ext/standard/tests/array/array_intersect_assoc_error.phpt +++ b/ext/standard/tests/array/array_intersect_assoc_error.phpt @@ -26,11 +26,11 @@ echo "Done"; -- Testing array_intersect_assoc() function with Zero arguments -- -Warning: Wrong parameter count for array_intersect_assoc() in %s on line %d +Warning: array_intersect_assoc(): at least 2 parameters are required, 0 given in %s on line %d NULL -- Testing array_intersect_assoc() function with less than expected no. of arguments -- -Warning: Wrong parameter count for array_intersect_assoc() in %s on line %d +Warning: array_intersect_assoc(): at least 2 parameters are required, 1 given in %s on line %d NULL Done diff --git a/ext/standard/tests/array/array_intersect_assoc_variation1.phpt b/ext/standard/tests/array/array_intersect_assoc_variation1.phpt index 3df11c6b85..713ed82f97 100644 --- a/ext/standard/tests/array/array_intersect_assoc_variation1.phpt +++ b/ext/standard/tests/array/array_intersect_assoc_variation1.phpt @@ -109,174 +109,173 @@ fclose($fp); echo "Done"; ?> --EXPECTF-- -*** Testing array_intersect() : Passing non-array values to $arr1 argument *** +*** Testing array_intersect_assoc() : Passing non-array values to $arr1 argument *** --- Iterator 1 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 1 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 2 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 2 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 3 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 3 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 4 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 4 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 5 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 5 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 6 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 6 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 7 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 7 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 8 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 8 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 9 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 9 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 10 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 10 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 11 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 11 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 12 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 12 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 13 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 13 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 14 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 14 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 15 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 15 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 16 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 16 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 17 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 17 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 18 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 18 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 19 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 19 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 20 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 20 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 21 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 21 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 22 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 22 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 23 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 23 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL --- Iterator 24 -- -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +-- Iteration 24 -- +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #1 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #1 is not an array in %s on line %d NULL Done - diff --git a/ext/standard/tests/array/array_intersect_assoc_variation2.phpt b/ext/standard/tests/array/array_intersect_assoc_variation2.phpt index 4026f8caf2..e82e7cfecd 100644 --- a/ext/standard/tests/array/array_intersect_assoc_variation2.phpt +++ b/ext/standard/tests/array/array_intersect_assoc_variation2.phpt @@ -110,174 +110,173 @@ fclose($fp); echo "Done"; ?> --EXPECTF-- -*** Testing array_intersect() : Passing non-array values to $arr2 argument *** +*** Testing array_intersect_assoc() : Passing non-array values to $arr2 argument *** --- Iterator 1 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 1 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 2 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 2 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 3 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 3 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 4 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 4 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 5 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 5 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 6 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 6 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 7 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 7 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 8 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 8 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 9 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 9 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 10 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 10 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 11 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 11 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 12 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 12 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 13 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 13 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 14 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 14 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 15 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 15 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 16 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 16 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 17 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 17 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 18 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 18 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 19 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 19 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 20 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 20 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 21 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 21 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 22 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 22 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 23 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 23 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL --- Iterator 24 -- -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +-- Iteration 24 -- +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL -Warning: array_intersect(): Argument #2 is not an array in %s on line %d +Warning: array_intersect_assoc(): Argument #2 is not an array in %s on line %d NULL Done - |