#24237 [Opn->Bgs]: number_format / printf problem
| From: | iliaa@php.net | Date: | Wed, 18 Jun 2003 15:02:58 +0000 |
| Subject: | #24237 [Opn->Bgs]: number_format / printf problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42190@lists.php.net to get a copy of this message | ||
ID: 24237
Updated by: iliaa@php.net
Reported By: stiangarthus at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: *Math Functions
Operating System: Linux
PHP Version: 4.3.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Unable to replicate, possibly the result of overoptimizations in
gentoo.
Previous Comments:
------------------------------------------------------------------------
[2003-06-17 23:03:12] stiangarthus at hotmail dot com
Description:
------------
Have only experienced this problem on one server. Fresh php
installation, standard php.ini.
Configure line:
./configure' '--with-mysql=/usr/local/mysql'
'--with-apache=/usr/local/src/www/apache_1.3.27' '--with-openssl=/usr'
'--enable-track-vars' '--enable-force-cgi-redirect' '--with-gettext'
Reproduce code:
---------------
$num = 4;
$num = number_format($num, 2);
echo "$num<br>";
$num = 4;
printf ("%.2f", $num);
Expected result:
----------------
4.00
4.00
Actual result:
--------------
0.00
0.00
http://www.yosearch.com/test1.php <- code here
http://www.yosearch.com/test.php <- phpinfo() here
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24237&edit=1