php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64371 sprintf formatting characters aren't sorted correctly
Submitted: 2013-03-06 21:54 UTC Modified: 2013-10-23 08:32 UTC
From: dharkness at gmail dot com Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dharkness at gmail dot com
New email:
PHP Version: OS:

 

 [2013-03-06 21:54 UTC] dharkness at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.sprintf#refsect1-function.sprintf-
parameters
---

The format character "%u" is not in the correct place in the list. The rest of 
the characters are sorted alphabetically. If it's in a different location because 
it closely relates to "%d", it should go directly under "%d" and *not* between 
"%E" and "%f" which is where it is now.

For bonus points have the table sorted alphabetically as it is (fix "%u") and add 
a separate table that groups them by how the type is treated (int, float, 
string). This second table wouldn't need to duplicate all of the descriptions; it 
would be used to find all the int-related codes.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-23 08:31 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=331922
Log: #64371 fix alphabetical ordering of specifiers, add table for extra points concerning co-ercion
 [2013-10-23 08:32 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-10-23 08:32 UTC] krakjoe@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

How do I collect my points !?

Thanks for your input :)
 [2013-10-23 09:18 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=331928
Log: #64371 don't use long
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 09:00:02 2026 UTC