cvs: php4 /ext/standard array.c

From: Date: Fri, 31 Aug 2001 04:52:11 +0000
Subject: cvs: php4 /ext/standard array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7132@lists.php.net to get a copy of this message
andrei Fri Aug 31 00:52:11 2001 EDT Modified files: /php4/ext/standard array.c Log: @- Made in_array() and search_array() allow the needle to be an array in @ itself. (Andrei) Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.126 php4/ext/standard/array.c:1.127 --- php4/ext/standard/array.c:1.126 Tue Aug 28 17:50:37 2001 +++ php4/ext/standard/array.c Fri Aug 31 00:52:10 2001 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: array.c,v 1.126 2001/08/28 21:50:37 rasmus Exp $ */ +/* $Id: array.c,v 1.127 2001/08/31 04:52:10 andrei Exp $ */ #include "php.h" #include "php_ini.h" @@ -1048,7 +1048,7 @@ 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; }

« previous php.cvs (#7132) next »