PHP 4.0 Bug #9219 Updated: Typecasting in array_diff/intersect
| From: | venaas@php.net | Date: | Mon, 12 Feb 2001 06:37:20 +0000 |
| Subject: | PHP 4.0 Bug #9219 Updated: Typecasting in array_diff/intersect | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46405@lists.php.net to get a copy of this message | ||
ID: 9219
Updated by: venaas
Reported By: chuck@leaseyourmind.com
Old-Status: Open
Status: Closed
Bug Type: Arrays related
Assigned To:
Comments:
Fixed in CVS
Previous Comments:
---------------------------------------------------------------------------
[2001-02-11 18:16:49] chuck@leaseyourmind.com
I do beleive that array_diff/intersect rely to heavily on the value's type.
A string '1' and integer 1 do not seem to be the same value as far as these two functions
are concerned.
This is an annoying little factoid to discover when attempting to use one of the functions with
mysql data.
If it's not a bug, please verify, then stick the info into the php manual.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9219&edit=2