mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
After restructuring non-packed arrays, we either need to pack them if possible, or to rehash them. Closes GH-9247.
12 lines
219 B
PHP
12 lines
219 B
PHP
--TEST--
|
|
Bug GH-9244 (Segfault with array_multisort + array_shift)
|
|
--FILE--
|
|
<?php
|
|
$items = ['foo' => 1, 'bar' => 2];
|
|
$order = [4, 3];
|
|
array_multisort($order, $items);
|
|
var_dump(array_shift($items));
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|