1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/standard/tests/array/bug79868.phpt
Nikita Popov 6f8d0ba0dd Fix bug #79868
This simply restores the code from PHP 7.4 which I incorrectly
"simplified" in master.
2020-07-20 15:15:23 +02:00

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"
}