#48119 [NEW]: usort() docs don't mention it now takes a lambda

From: Date: Wed, 29 Apr 2009 23:58:58 +0000
Subject: #48119 [NEW]: usort() docs don't mention it now takes a lambda
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2178@lists.php.net to get a copy of this message
From: schwern at pobox dot com Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: usort() docs don't mention it now takes a lambda 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 bug report at http://bugs.php.net/?id=48119&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48119&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48119&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48119&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48119&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48119&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48119&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48119&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48119&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48119&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48119&r=support Expected behavior: http://bugs.php.net/fix.php?id=48119&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48119&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48119&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48119&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48119&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48119&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48119&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48119&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48119&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48119&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48119&r=mysqlcfg

« previous php.doc.bugs (#2178) next »