[PHP-DEV] PHP 4.0 Bug #6808 Updated: misbehavior of sprintf and printf From: Bug Database (php-dev <email protected>)
Date: 09/20/00

ID: 6808
User Update by: piotrbe <email protected>
Status: Feedback
Bug Type: Unknown/Other Function
Description: misbehavior of sprintf and printf

I removed zendoptimizer (rc1) from my ini file, and now seams to be good. I try to reproduce this bug on another server and publish url.

Previous Comments:
---------------------------------------------------------------------------

[2000-09-20 01:49:18] stas <email protected>
Failed to reproduce here. Did you change anything between runs, in your scripts, or in your Windows?

---------------------------------------------------------------------------

[2000-09-18 22:58:03] piotrbe <email protected>
IIS 4.0 + php4isapi.dll + zendopt

$float = "21.37";
printf ("%0.02f<br>",$float);
echo "$float<BR><br>";

------OUTPUT------
21.37<br>
21.37<br><br>

4 hours later (really)

------OUTPUT------
21.00<br>
21.37<br><br>

strange isn't it?

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=6808

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>