Re: [PHP-DEV] [PATCH] sprintf like functions and "*" modifier

2012-01-13 Thread Christopher Jones
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 attached

[PHP-DEV] [PATCH] sprintf like functions and "*" modifier

2012-01-13 Thread Azat Khuzhin
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 attached -- Azat Khuzhin diff --git a/ext/standard/fo