php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30996 wrong return values of sort functions [de]
Submitted: 2004-12-06 12:02 UTC Modified: 2004-12-10 19:50 UTC
From: mail at fallingarms dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mail at fallingarms dot de
New email:
PHP Version: OS:

 

 [2004-12-06 12:02 UTC] mail at fallingarms dot de
Description:
------------
In [1] the return value of natcasesort() is defined as "void". This has to be "bool".

 [1] http://de2.php.net/manual/en/function.natcasesort.php

The same with natsort().

In the german manual translation this bug is in every sort functions reference:

krsort()      (int->bool)
ksort()       (int -> bool)
natcasesort()
natsort()
rsort()
sort()
uasort()
uksort() 

Maybe other translations have this mistake too..?

Basti


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-06 12:11 UTC] mail at fallingarms dot de
In [1] the return value of natcasesort() is defined as "void". This has
to be "bool".

 [1] http://de2.php.net/manual/en/function.natcasesort.php

The same with natsort().

In the german manual translation this bug is in every sort functions reference:

krsort()      (int -> bool)
ksort()       (int -> bool)
natcasesort()
natsort()
rsort()
sort()
uasort()
uksort() 

Also the arrays passed by reference to these functions are not marked with the "&" in the german transations.

Maybe other translations have these mistakes too..?

Basti
 [2004-12-06 12:23 UTC] vrana@php.net
Fixed in XML sources of English version in natsort() and natcasesort().
 [2004-12-10 19:50 UTC] nlopess@php.net
Closing because its fixed in the english manual.
The german doc team will update their translations when they have some time.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 14:01:28 2024 UTC