ID: 41324 Updated by: [EMAIL PROTECTED] Reported By: kami dot fubuki at gmail dot com -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: windows xp PHP Version: 5.2.2 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2007-05-08 08:43:03] kami dot fubuki at gmail dot com Description: ------------ array_unique doesn't seem to work correctly. Reproduce code: --------------- print_r($unique_terms); $unique_terms=array_unique($unique_terms); print_r($unique_terms);exit; Expected result: ---------------- Array ( [0] => a [1] => c [2] => d [3] => b [4] => c [5] => b [6] => c [7] => d [8] => b [9] => c [10] => d ) Array ( [0] => a [1] => c [2] => d [3] => b ) Actual result: -------------- Array ( [0] => a [1] => c [2] => d [3] => b [4] => c [5] => b [6] => c [7] => d [8] => b [9] => c [10] => d ) Array ( [0] => a [1] => c [2] => d [3] => b [4] => c ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41324&edit=1