php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52646 contradicting information regarding "sort_flags"
Submitted: 2010-08-19 16:33 UTC Modified: 2010-08-20 07:29 UTC
From: alex dot schuch at gmx dot de Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: -/-
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alex dot schuch at gmx dot de
New email:
PHP Version: OS:

 

 [2010-08-19 16:33 UTC] alex dot schuch at gmx dot de
Description:
------------
The changelog says that in 5.0.2, $sort_flags accepts SORT_LOCALE_STRING.
However, in 5.2.9, the parameter $sort_flags was added.

So, does PHP 5.1 accept the $sort_flags parameter or not?

Expected result:
----------------
My *guess* is that SORT_LOCALE_STRING was added in 5.0.2 for sort(). But as
array_unique() got its $sort_flags parameter much later in 5.2.9, this piece of
information is not relevant here.

Remove the 5.0.2 line from the changelog for array_unique().


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-19 16:35 UTC] alex dot schuch at gmx dot de
I forgot to mention the function I am talking about:
http://www.php.net/manual/en/function.array-unique.php
 [2010-08-20 07:25 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2010-08-20 07:25 UTC] aharvey@php.net
Looks like the 5.0.2 changelog entry was inadvertently copied from another function's documentation. I'll get rid of it, since 5.2.9 is the right version.
 [2010-08-20 07:29 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=302524
Log: Fix doc bug #52646 (contradicting information regarding "sort_flags").
 [2010-08-20 07:29 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2010-08-20 07:29 UTC] aharvey@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 16:00:01 2026 UTC