#48119 [Opn->Ana]: usort() docs don't mention it now takes a lambda
| From: | kalle@php.net | Date: | Sat, 02 May 2009 02:00:44 +0000 |
| Subject: | #48119 [Opn->Ana]: usort() docs don't mention it now takes a lambda | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2184@lists.php.net to get a copy of this message | ||
ID: 48119
Updated by: kalle@php.net
Reported By: schwern at pobox dot com
-Status: Open
+Status: Analyzed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
All functions that accept a callback can make use of lambda style
functions, I don't think its worth adding to every single function that
takes a callback parameter that as of 5.3 its possible to pass a closure
there. I'll leave this to one of the other doc-geeks to decide.
Previous Comments:
------------------------------------------------------------------------
[2009-04-29 23:58:58] schwern at pobox dot com
Description:
------------
The documentation for array_map() mentions...
5.3.0 It is now possible to use a lambda function as the callback.
That's nice to know. usort() does not mention this, nor does it have
any examples showing it off. It would be nice if it did.
I had to compile up 5.3.0 to check that it did, in fact, work. There
also appear to be no tests for this in ext/standard/tests/array/usort*
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48119&edit=1