diff options
author | Andrei Zmievski <andrei@php.net> | 2001-08-31 04:52:10 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2001-08-31 04:52:10 +0000 |
commit | 392e1edee87917154c1a34acd747def6f096144b (patch) | |
tree | 02045e81a29bc9de5d98c738cf0c20d9d1e489ba | |
parent | 217059fdc74f8a39a2c9f65d17176cbf71a81bdb (diff) | |
download | php-git-392e1edee87917154c1a34acd747def6f096144b.tar.gz |
@- Made in_array() and search_array() allow the needle to be an array in
@ itself. (Andrei)
-rw-r--r-- | ext/standard/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |