From:             heller at hellerim dot de
Operating system: windowsXP
PHP version:      5.0.2
PHP Bug Type:     Variables related
Bug description:  ISAPI module with IIS truncates fractional part of float 
values

Description:
------------
Today I configured my system to run IIS with the PHP5.0.2 ISAPI module.
When looking on a pricelist contained in my web application I found that
the fractional part of the currency values was omitted (e.g. 4,00 €
instead of 4,95 €). After reconfiguring my system to run with the cgi
variant (same version) everything was as it should be (i.e. 4,95 €
displayed as 4,95 €). To verify this bug I used a short script just
printing 4.95 and obtained the corresponding results. Obviously this is
not related to any database access as is the case with similar bugs which
were reported earlier. The only difference between the two configurations
is the executable configured with IIS. Actually, my system is using both
executables: The base installation uses the ISAPI module, while the
virtual directory with which I found the bug was reconfigured to override
this setting and use the cgi module.

Reproduce code:
---------------
<?php print("" . 4.95); ?>

Expected result:
----------------
The output should be 4.95.

Actual result:
--------------
With php5isapi.dll I get 4 while using php5-cgi.exe yields 4.95.

-- 
Edit bug report at http://bugs.php.net/?id=31029&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31029&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31029&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31029&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31029&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31029&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31029&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31029&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31029&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31029&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31029&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31029&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31029&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31029&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31029&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31029&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31029&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31029&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31029&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31029&r=mysqlcfg

Reply via email to