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/bug74361.phpt
2017-04-02 13:19:32 +02:00

12 lines
148 B
PHP

--TEST--
Bug #74361: Compaction in array_rand() violates COW
--FILE--
<?php
$array = [4 => 4];
var_dump(array_rand($array));
?>
--EXPECT--
int(4)