PHP 4.0 Bug #9219: Typecasting in array_diff/intersect
| From: | chuck at leaseyourmind dot com | Date: | Sun, 11 Feb 2001 23:16:50 +0000 |
| Subject: | PHP 4.0 Bug #9219: Typecasting in array_diff/intersect | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46396@lists.php.net to get a copy of this message | ||
From: chuck@leaseyourmind.com
Operating system: Linux
PHP version: 4.0.4pl1
PHP Bug Type: Arrays related
Bug description: Typecasting in array_diff/intersect
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.
--
Edit Bug report at: http://bugs.php.net/?id=9219&edit=1