php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77529 %G modifier is possibly incorrect
Submitted: 2019-01-27 16:49 UTC Modified: 2019-02-12 16:07 UTC
From: girgias@php.net Assigned: cmb (profile)
Status: Closed Package: Strings related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: girgias@php.net
New email:
PHP Version: OS:

 

 [2019-01-27 16:49 UTC] girgias@php.net
Description:
------------
---
From manual page: https://php.net/function.sprintf
---

Shouldn't:
"G - shorter of %E and %f."
be
"G - shorter of %E and %F." as per http://www.cplusplus.com/reference/cstdio/printf/ ?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-02-12 15:40 UTC] girgias@php.net
-Assigned To: +Assigned To: cmb
 [2019-02-12 15:40 UTC] girgias@php.net
cmb can you verify this bug (or redirect to the capable person).

Also wrote the tiny patch needed to fix it.
http://edit.php.net/?patchID=3290&project=PHP
 [2019-02-12 16:05 UTC] cmb@php.net
-Status: Assigned +Status: Verified -Package: Documentation problem +Package: Strings related
 [2019-02-12 16:05 UTC] cmb@php.net
There is still the related bug #77451, but your patch is
definitely a correction.
 [2019-02-12 16:05 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=346810
Log: Fix #77529: %G modifier is possibly incorrect

Patch provided by girgias.
 [2019-02-12 16:07 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2019-02-12 16:07 UTC] cmb@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.
 [2019-02-18 16:41 UTC] salathe@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=489957f299b1fb95b59a0bbdf5d38f3ca2810eb0
Log: Fix #77529: %G modifier is possibly incorrect
 [2019-02-19 20:22 UTC] salathe@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b91964cf18966901a2a6fa95b445c8b874624f29
Log: Fix #77529: %G modifier is possibly incorrect
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Feb 23 01:01:26 2019 UTC