Re: [PATCH] sprintf like functions and "*" modifier
| From: | Christopher Jones | Date: | Fri, 13 Jan 2012 19:01:30 +0000 |
| Subject: | Re: [PATCH] sprintf like functions and "*" modifier | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-57361@lists.php.net to get a copy of this message | ||
On 1/13/12 5:10 AM, Azat Khuzhin wrote:
Hi all, I'v add support of "*" modifier for sprintf, it exist in sprintf C implementation (http://www.cplusplus.com/reference/clibrary/cstdio/printf/) Usage: sprintf("%.*f", 2, 2) // output "2.00" sprintf("%.2f", 2) // output "2.00" My patch attachedFor tracking, can you log a bug and attach the patch (and any relevant tests)? Chris -- Email: christopher.jones@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/