xref: /PHP-8.3/ext/standard/tests/array/gh9244.phpt (revision ad04345e)
1--TEST--
2Bug GH-9244 (Segfault with array_multisort + array_shift)
3--FILE--
4<?php
5$items = ['foo' => 1, 'bar' => 2];
6$order = [4, 3];
7array_multisort($order, $items);
8var_dump(array_shift($items));
9?>
10--EXPECT--
11int(2)
12