xref: /PHP-7.2/ext/standard/tests/array/bug24897.phpt (revision e5b7d5cc)
1--TEST--
2Bug #24897 (inconsistent behaviour or shuffle() & array_multisort())
3--FILE--
4<?php
5$a = array(1 => 2);
6shuffle($a);
7var_dump($a);
8
9$a = array(1 => 2);
10array_multisort($a);
11var_dump($a);
12?>
13--EXPECT--
14array(1) {
15  [0]=>
16  int(2)
17}
18array(1) {
19  [0]=>
20  int(2)
21}
22