#30996 [Opn->Csd]: wrong return values of sort functions [de]
| From: | nlopess@php.net | Date: | Fri, 10 Dec 2004 18:50:41 +0000 |
| Subject: | #30996 [Opn->Csd]: wrong return values of sort functions [de] | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969365422@lists.php.net to get a copy of this message | ||
ID: 30996
Updated by: nlopess@php.net
Reported By: mail at fallingarms dot de
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Closing because its fixed in the english manual.
The german doc team will update their translations when they have some
time.
Previous Comments:
------------------------------------------------------------------------
[2004-12-06 12:23:51] vrana@php.net
Fixed in XML sources of English version in natsort() and natcasesort().
------------------------------------------------------------------------
[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