Doc #76516 [Opn]: shuffle() has a note about undefined sorted order
| From: | requinix@php.net | Date: | Fri, 22 Jun 2018 04:59:15 +0000 |
| Subject: | Doc #76516 [Opn]: shuffle() has a note about undefined sorted order | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15811@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76516&edit=1
ID: 76516
Updated by: requinix@php.net
Reported by: dharkness at gmail dot com
Summary: shuffle() has a note about undefined sorted order
Status: Open
Type: Documentation Problem
-Package: Documentation problem
+Package: Arrays related
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I checked the source back through PHP 4.0 and didn't see anything that would explain the note.
Nothing obvious in the PHP 5 or 7 changelogs either. And the doc editor seems to be down so I
can't check the page's edit history to see when the note was added.
So tentatively and probably yes, that doesn't need to be there.
Previous Comments:
------------------------------------------------------------------------
[2018-06-22 04:33:18] dharkness at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.shuffle
---
This note should be removed unless equal values truly affect the shuffled order:
If two members compare as equal, their relative order in the sorted array is undefined.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76516&edit=1