|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55744 Inefficient manual example
Submitted: 2011-09-20 20:11 UTC Modified: 2011-09-20 21:43 UTC
From: zach dot rattner at gmail dot com Assigned:
Status: Wont fix Package: Documentation problem
PHP Version: 5.3.8 OS: NA
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: zach dot rattner at gmail dot com
New email:
PHP Version: OS:


 [2011-09-20 20:11 UTC] zach dot rattner at gmail dot com
From manual page:

Why isn't cmp defined to be 'return $a - $b;'?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-20 21:43 UTC]
-Status: Open +Status: Wont fix
 [2011-09-20 21:43 UTC]
The example is overly explicit, as the note below it says. Having it laid out this 
way helps make it clearer what the return values may be from a comparison 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 09:01:30 2024 UTC