mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
16 lines
216 B
PHP
16 lines
216 B
PHP
--TEST--
|
|
Bug #79868: Sorting with array_unique gives unwanted result
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(array_unique(['b', 'a', 'b'], SORT_REGULAR));
|
|
|
|
?>
|
|
--EXPECT--
|
|
array(2) {
|
|
[0]=>
|
|
string(1) "b"
|
|
[1]=>
|
|
string(1) "a"
|
|
}
|