Doc #77451 [Ver->Csd]: %g format for printf & sprintf is misdocumented

From: Date: Sun, 24 Mar 2019 17:46:01 +0000
Subject: Doc #77451 [Ver->Csd]: %g format for printf & sprintf is misdocumented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16511@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77451&edit=1 ID: 77451 Updated by: girgias@php.net Reported by: markamery at btinternet dot com Summary: %g format for printf & sprintf is misdocumented -Status: Verified +Status: Closed Type: Documentation Problem Package: Strings related PHP Version: Irrelevant Assigned To: girgias Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2019-03-24 16:30:35] girgias@php.net Automatic comment from SVN on behalf of girgias Revision: http://svn.php.net/viewvc/?view=revision&revision=347041 Log: Improve sprintf documentation and related functions (such as printf) Fix Doc Bug #77451 Integrate Note 111201 into doc http://php.net/manual/en/function.sprintf.php#111201 ------------------------------------------------------------------------ [2019-03-20 17:50:31] girgias@php.net The following patch has been added/updated: Patch Name: sprintf_related_functions_improvement Revision: 1553104231 URL: https://bugs.php.net/patch-display.php?bug=77451&patch=sprintf_related_functions_improvement&revision=1553104231 ------------------------------------------------------------------------ [2019-02-26 17:33:22] girgias@php.net Updated the patch [1] to move the format parameter into an XML Snippet and added it to all relevant functions. It validates and the doc looks good to me. Can you have a look and/or merge it @cmb? [1] https://edit.php.net/?patchID=3291&project=PHP ------------------------------------------------------------------------ [2019-02-12 23:15:32] girgias@php.net Wrote a patch to improve the sprintf doc: http://edit.php.net/?patchID=3291&project=PHP @cmb I was thinking to maybe move the examples out of the format parameter and then move the format parameter XML into an entity and include this entity in all the other related functions (such as printf or fscanf for example). Oh also I couldn't try it out as I haven't managed to download the Doc Block Rendering system onto my Linux Sub System so not totally sure how this patch looks like. ------------------------------------------------------------------------ [2019-02-12 16:05:00] cmb@php.net Related To: Bug #77529 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=77451 -- Edit this bug report at https://bugs.php.net/bug.php?id=77451&edit=1

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