Bug #79426 [Opn->Nab]: array_unique bad results

From: Date: Sat, 28 Mar 2020 15:39:15 +0000
Subject: Bug #79426 [Opn->Nab]: array_unique bad results
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226293@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 Updated by: peehaa@php.net Reported by: dpfender44 at gmail dot com Summary: array_unique bad results -Status: Open +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: 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 Previous Comments: ------------------------------------------------------------------------ [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 (#226293) next »