#44092 [Fbk->Csd]: exp() function returns incorrect result if passed hex
| From: | felipe@php.net | Date: | Mon, 18 Feb 2008 11:39:33 +0000 |
| Subject: | #44092 [Fbk->Csd]: exp() function returns incorrect result if passed hex | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122397@lists.php.net to get a copy of this message | ||
ID: 44092
Updated by: felipe@php.net
Reported By: zoe@php.net
-Status: Feedback
+Status: Closed
Bug Type: *Math Functions
Operating System: Linux 32
PHP Version: 5.3CVS-2008-02-10 (CVS)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-02-13 15:40:26] bjori@php.net
(fix summary)
------------------------------------------------------------------------
[2008-02-12 07:36:16] zoe@php.net
commited fix to /ext/standard/math.c and
/ext/standard/tests/math/exp_error.phpt in PHP5.3 and PHP 5.2
------------------------------------------------------------------------
[2008-02-11 16:22:30] zoe@php.net
Felipe - I think they should probably all change. I'm happy to work
through one at a time (or maybe you'd like to fix some?), I don't really
want to do them all in one update. I used exp() to make sure that I was
doing the right thing. Quite a few of the tests would also need changing
(because I worked around this for a while). I think sin() and cos() at
least are wrong. I've also got bugs pending in number_format() and
hypot() - which *might* be the same issue.
Zoe
------------------------------------------------------------------------
[2008-02-11 16:07:30] felipe@php.net
Hello Ilia,
in this case, should all math functions in ext/standard/ use the new
parsing parameter, no? Only fix the exp() sounds wrong to me...
------------------------------------------------------------------------
[2008-02-11 14:23:35] iliaa@php.net
Go ahead and apply the patch to the code & the test.
------------------------------------------------------------------------
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/44092
--
Edit this bug report at http://bugs.php.net/?id=44092&edit=1