On Fri, Jan 19, 2001 at 03:10:38PM -0000, Bug Database wrote:
> ID: 8803
> Updated by: derick
> Reported By: [EMAIL PROTECTED]
> Old-Status: Open
> Status: Closed
> Bug Type: Unknown/Other Function
> Assigned To: 
> Comments:
> This works fine:
> echo sprintf ("%2x", 29);
> output:
> 1d
> This is not a bug.

Forgive me, but I disagree. Using "%2x" is not the same since it omits the leading
zero that "%.2x" gives in C/C++. Using the existing sprintf to build HTML colour 
like "#0C0E2D" from a red/green/blue triple is made much harder unless there is a 

You can consider not supporting a standard like ANSI/ISO to not be a bug, but you will
likely be in a minority there.

Sorry, I don't want to carp - but it IS a problem for me.

All the best,

Mike Banahan - GBdirect 27 Park Drive Bradford England BD9 4DS
Tel 01274 772277 Fax 01274 772281
Put reality back into cyberspace: http://somewherenear.com

PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to