note 58854 deleted from function.array-unique by mazzanet
| From: | mazzanet@php.net | Date: | Fri, 18 Nov 2005 05:42:24 +0000 |
| Subject: | note 58854 deleted from function.array-unique by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98739@lists.php.net to get a copy of this message | ||
Note Submitter: kazan at cs dot iastate dot edu
----
absolutely never trust this functing in a production environment. It improperly removed
non-duplicate IDs from an array resulting in a billing undercharge on a production environment - the
exact opposite bug caused by in_array behaving badly that using this function was meant to solve.
Always use in_array with the strict option and everything properly cast - if you must use
array_unique implement your own with strict in_array and casting.