|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10449 shuffle() function crashes PHP
Submitted: 2001-04-23 01:24 UTC Modified: 2002-04-03 00:00 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: sthurrowgood at yahoo dot com dot au Assigned:
Status: No Feedback Package: Arrays related
PHP Version: 4.0.4pl1 OS: Solaris
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: sthurrowgood at yahoo dot com dot au
New email:
PHP Version: OS:


 [2001-04-23 01:24 UTC] sthurrowgood at yahoo dot com dot au
I know it is a known problem with the rand() implementation on some systems - so my question is: Why not implement the shuffle function in a way that does not stuff up on some systems e.g. use the mt_rand() function with its known randomness and known random implementation - and save everyone on Solaris systems (and possibly others) from having to write their own shuffle functions (which I have be forced to do).



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-21 01:30 UTC]
This is another report about shuffle() problems.
And using mt_rand() would (IMO) be a good solution.

 [2002-02-26 21:51 UTC]
Is this still a issue?
Reporter, could you update php version if you have problem with 4.1.1, or close this bug if you have problem.
Thank you.
 [2002-04-03 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 17:01:31 2024 UTC