Bug #79426 [Nab]: array_unique bad results

From: Date: Sat, 28 Mar 2020 18:28:18 +0000
Subject: Bug #79426 [Nab]: array_unique bad results
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226297@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79426&edit=1 ID: 79426 User updated by: dpfender44 at gmail dot com Reported by: dpfender44 at gmail dot com Summary: array_unique bad results Status: Not a bug Type: Bug Package: Arrays related Operating System: windows 10 PHP Version: 7.4.4 Block user comment: N Private report: N New Comment: How is this not a bug? The original array contains string values and the result is not correct. This is not a complicated situation. Is there a flag that is need to make this simple case work as the documentation implies that it should? If so, then the documentation should be improved. Previous Comments: ------------------------------------------------------------------------ [2020-03-28 15:39:15] peehaa@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php ------------------------------------------------------------------------ [2020-03-28 15:36:12] dpfender44 at gmail dot com Description: ------------ The function array_unique produces bad results with an array of simple string values. Many unset elements result in the new array. The test program shows good results with my own do_array_unique function and bad results with PHP array_unique. Test script: --------------- http://shuffle.djpnet.dyndns.org/shuffle3_php.txt ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79426&edit=1

« previous php.bugs (#226297) next »