#30996 [Opn]: wrong return values of sort functions [de]
| From: | vrana@php.net | Date: | Mon, 06 Dec 2004 11:24:02 +0000 |
| Subject: | #30996 [Opn]: wrong return values of sort functions [de] | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969365368@lists.php.net to get a copy of this message | ||
ID: 30996
Updated by: vrana@php.net
-Summary: wrong return values of sort functions
Reported By: mail at fallingarms dot de
Status: Open
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Fixed in XML sources of English version in natsort() and natcasesort().
Previous Comments:
------------------------------------------------------------------------
[2004-12-06 12:11:01] 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:02:50] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30996&edit=1