|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2020-08-13 09:34 UTC] nikic@php.net
 
-Status: Open
+Status: Duplicate
  [2020-08-13 09:34 UTC] nikic@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 02:00:02 2025 UTC | 
Description: ------------ this should be definitely supported, probably with SORT_UNIQUE_STRICT constant. currently, there is not simple way to remove same instance duplicates Test script: --------------- $d = new \DateTime('2000-1-1'); print_r( array_unique([$d, $d, new \DateTime('2000-1-1')], SORT_REGULAR) ); Expected result: ---------------- array with 2 DateTime elements Actual result: -------------- remove same instance duplicates - not supported by array_unique