From: Andrei Zmievski Date: Fri, 31 Aug 2001 04:52:10 +0000 (+0000) Subject: @- Made in_array() and search_array() allow the needle to be an array in X-Git-Tag: PRE_SUBST_Z_MACROS~293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=392e1edee87917154c1a34acd747def6f096144b;p=php @- Made in_array() and search_array() allow the needle to be an array in @ itself. (Andrei) --- diff --git a/ext/standard/array.c b/ext/standard/array.c index 72ccc5eeee..83942db409 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -1048,7 +1048,7 @@ static void php_search_array(INTERNAL_FUNCTION_PARAMETERS, int behavior) WRONG_PARAM_COUNT; } - if (Z_TYPE_PP(value) == IS_ARRAY || Z_TYPE_PP(value) == IS_OBJECT) { + if (Z_TYPE_PP(value) == IS_OBJECT) { php_error(E_WARNING, "Wrong datatype for first argument in call to %s", get_active_function_name(TSRMLS_C)); RETURN_FALSE; }