Req #63989 [Opn]: ArrayIterator::usort method
| From: | cmb@php.net | Date: | Thu, 21 Sep 2017 08:54:56 +0000 |
| Subject: | Req #63989 [Opn]: ArrayIterator::usort method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-211294@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63989&edit=1
ID: 63989
Updated by: cmb@php.net
Reported by: franssen dot roland at gmail dot com
Summary: ArrayIterator::usort method
Status: Open
Type: Feature/Change Request
Package: SPL related
Operating System: Linux
PHP Version: 5.3.20
Block user comment: N
Private report: N
New Comment:
> Also the current user defined sort methods (uasort, uksort) don't accept a
> valid callable as argument (e.g. a closure). Only a string works :(
Actually, general callables are supported, see <https://3v4l.org/Rv61G>. The
documentation is wrong.
Previous Comments:
------------------------------------------------------------------------
[2013-01-15 11:09:15] franssen dot roland at gmail dot com
Description:
------------
Hi,
There is currently no "ArrayIterator::usort" method which assigns new keys to the elements
(e.g. usort vs uasort function).
Also the current user defined sort methods (uasort, uksort) don't accept a valid callable as
argument (e.g. a closure). Only a string works :(
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63989&edit=1