#12690 [Com]: array_unique under windows does not work as it does under linux

From: Date: Tue, 20 Jul 2004 15:13:24 +0000
Subject: #12690 [Com]: array_unique under windows does not work as it does under linux
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63157@lists.php.net to get a copy of this message
ID: 12690 Comment by: mpg-my1462 at hotmail dot com Reported By: colin at nexus dot carleton dot ca Status: Bogus Bug Type: Arrays related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: <a href=http://my-special-shaved-m.da.ru>my mpg</a> Previous Comments: ------------------------------------------------------------------------ [2001-09-14 19:40:22] jeroen@php.net Array_unique isn't supposed to handle multi-dimension arrays, nor objects. See also 10658 ------------------------------------------------------------------------ [2001-08-10 10:31:18] colin at nexus dot carleton dot ca in linux, the following array would be UNCHANGED after being put through array_unique. But, in windows you'll see below, the it doesn't seem to go deeper into the value of each array element to check if they are the same or different. the following are the results from using array_unique on wnidows 2000 BEFORE Array ( [0] => Array ( [0] => 4003 [1] => 50140 [2] => 1 ) [1] => Array ( [0] => 4001 [1] => 50140 [2] => 1 ) [2] => Array ( [0] => 2051 [1] => 50200 [2] => 1 ) [3] => Array ( [0] => 998 [1] => 50190 [2] => 1 ) ) AFTER ARRAY_UNIQUE Array ( [1] => Array ( [0] => 4001 [1] => 50140 [2] => 1 ) ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12690&edit=1

« previous php.bugs (#63157) next »