TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
438 B
23 lines
438 B
--TEST--
|
|
Bug #69371 (Hash table collision leads to inaccessible array keys)
|
|
--SKIPIF--
|
|
--FILE--
|
|
<?php
|
|
$array = array(
|
|
"d6_node_type" => 1,
|
|
"d6_filter_format" => 2,
|
|
"d6_user" => 3,
|
|
"d6_field_instance_widget_settings" => 4,
|
|
"d6_field_formatter_settings" => 5,
|
|
);
|
|
|
|
$weights = array(
|
|
5, 1, 3, 2, 0
|
|
);
|
|
array_multisort($weights, SORT_DESC, SORT_NUMERIC, $array);
|
|
|
|
var_dump($array["d6_node_type"]);
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|
|
|