#34599 [Opn->WFx]: Accuracy of round() function affected by compiler optimizations (PHP 5.1 works)
ID: 34599
Updated by: sniper@php.net
Reported By: osolo at wndtabs dot com
-Status: Open
+Status: Wont fix
Bug Type: Math related
Operating System: Linux
PHP Version: 4CVS-2005-09-26
New Comment:
This is not critical bug and as it works fine with 5.1 -> wont fix.
Previous Comments:
------------------------------------------------------------------------
[2005-09-26 21:13:39] osolo at wndtabs dot com
Tested php-STABLE-200509261835; the bug is still there.
------------------------------------------------------------------------
[2005-09-26 18:07:38] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Just to be on the safe side..try the PHP 4 snapshot too.
------------------------------------------------------------------------
[2005-09-26 17:59:25] osolo at wndtabs dot com
Sniper, you either have finely tuned searching skills or the memory of
an elephant (or both). It would appear that this is either a duplicate
or very similar to the straggly named bug #17772.
As you requested, I tested the problem with following versions:
4.4.0 - Broken
5.0.5 - Broken
5.1 RC1 - Good
5.1 CVS - Good
I'm not sure what changed between 5.0.5 and 5.1 RC1 that could fix this
problem. Perhaps someone who's more familiar with the sources can shed
some light.
Currently, I'm looking to solve this for 4.4.0 because upgrading to
PHP5 is not an option for our project.
Thanks for all the help!
------------------------------------------------------------------------
[2005-09-23 10:03:04] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
And don't try to outsmart the configure with any CFLAGS or LDFLAGS of
your own.
------------------------------------------------------------------------
[2005-09-22 21:43:41] sniper@php.net
See also bug #17772 which has some talk about optimizations and some
other options.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/34599
--
Edit this bug report at http://bugs.php.net/?id=34599&edit=1
Thread (9 messages)