Bug #18259: array_search doesnt search in arrayindex[0]
| From: | schizo at psykick dot de | Date: | Wed, 10 Jul 2002 09:13:00 +0000 |
| Subject: | Bug #18259: array_search doesnt search in arrayindex[0] | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-13700@lists.php.net to get a copy of this message | ||
From: schizo@psykick.de
Operating system: Windows2000
PHP version: 4.2.1
PHP Bug Type: Arrays related
Bug description: array_search doesnt search in arrayindex[0]
array_search doesnt search the first index (0) of an array.
example:
url: test.php?action=new&state=ok&module=1
test.php:
...
$page_params=array_merge($HTTP_POST_VARS,$HTTP_GET_VARS);
//merge is not the problem
array_search("state",array_keys($page_params));
//result: true -> its ok
array_search("action",array_keys($page_params));
//result: false -> BUG
array_keys() works correct (I checked this), the problem is the
array_search().
--
Edit bug report at http://bugs.php.net/?id=18259&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18259&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18259&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18259&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18259&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18259&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18259&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18259&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18259&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18259&r=globals