mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
MFB: Add test for #48224
This commit is contained in:
parent
67be3d9e01
commit
fbb11e58c5
1 changed files with 15 additions and 0 deletions
15
ext/standard/tests/array/bug48224.phpt
Normal file
15
ext/standard/tests/array/bug48224.phpt
Normal file
|
@ -0,0 +1,15 @@
|
|||
--TEST--
|
||||
Bug #48224 (array_rand no longer shuffles)
|
||||
--FILE--
|
||||
<?php
|
||||
$a = range(0, 100);
|
||||
$a1 = array_rand($a, count($a));
|
||||
$a2 = array_rand($a, count($a));
|
||||
$a3 = array_rand($a, count($a));
|
||||
$a4 = array_rand($a, count($a));
|
||||
|
||||
var_dump($a1 === $a2 && $a1 === $a3 && $a1 === $a4);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
Loading…
Add table
Add a link
Reference in a new issue