PHP 4.0 Bug #6507 Updated: in_array never returns a proper value
| From: | Bug Database | Date: | Sun, 03 Sep 2000 10:01:20 +0000 |
| Subject: | PHP 4.0 Bug #6507 Updated: in_array never returns a proper value | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-31755@lists.php.net to get a copy of this message | ||
ID: 6507
Updated by: stas
Reported By: darron@froese.org
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:
before using next, perv and current, you should do reset(). Then, next and prev not only get items,
but move array pointer. Please read the manual about that.
Previous Comments:
[2000-09-03 06:01:20] stas@php.net
before using next, perv and current, you should do reset(). Then, next and prev not only get items,
but move array pointer. Please read the manual about that.
----------------------------------------------------------------------------
[2000-09-03 00:24:00] darron@froese.org
Sorry, the description is wrong - in_array still seems to be working, it's current($array),
prev($array) and next($array) that seem to be misbehaving.
----------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6507