Bug #79426 [NEW]: array_unique bad results

From: Date: Sat, 28 Mar 2020 15:36:12 +0000
Subject: Bug #79426 [NEW]: array_unique bad results
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226292@lists.php.net to get a copy of this message
From: dpfender44 at gmail dot com Operating system: windows 10 PHP version: 7.4.4 Package: Arrays related Bug Type: Bug Bug description:array_unique bad results 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 bug report at https://bugs.php.net/bug.php?id=79426&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79426&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79426&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79426&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79426&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79426&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79426&r=support Expected behavior: https://bugs.php.net/fix.php?id=79426&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79426&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79426&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79426&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79426&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79426&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79426&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79426&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79426&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79426&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79426&r=mysqlcfg

« previous php.bugs (#226292) next »