Req #60755 [Asn->Csd]: "*" modifier for sprintf

From: Date: Wed, 27 May 2020 10:23:40 +0000
Subject: Req #60755 [Asn->Csd]: "*" modifier for sprintf
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227195@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60755&edit=1 ID: 60755 Updated by: nikic@php.net Reported by: dohardgopro at gmail dot com Summary: "*" modifier for sprintf -Status: Assigned +Status: Closed Type: Feature/Change Request Package: SPL related Operating System: * PHP Version: Irrelevant Assigned To: nikic Block user comment: N Private report: N New Comment: Support for * has been added in PHP 8.0: https://github.com/php/php-src/commit/0221b8b2ab8cd53845a03cedb31add36e58e390f Previous Comments: ------------------------------------------------------------------------ [2012-01-14 18:34:29] dohardgopro at gmail dot com Description: ------------ Hi all, I'v add support of "*" modifier for sprintf, it exist in sprintf C implementation (http://www.cplusplus.com/reference/clibrary/cstdio/printf/) My patch attached Test script: --------------- sprintf("%.*f", 2, 2) // output "2.00" sprintf("%.2f", 2) // output "2.00" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60755&edit=1

« previous php.bugs (#227195) next »