Re: bug 43053 - scientific notation
| From: | Edward Z. Yang | Date: | Thu, 13 Mar 2008 21:01:33 +0000 |
| Subject: | Re: bug 43053 - scientific notation | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36128@lists.php.net to get a copy of this message | ||
Antony Dovgal wrote:
> In 5.2.1 string-to-double routines were changed to use BSD licensed
> code (previous version was LGPLed).
> What you see is just an unintentional side-effect of this update.
Side-effect or not, it looks like the change was pretty major and some
documentation should be added. There, really, are two questions:
1. What is the new behavior?
2. Is the new behavior correct?
It looks like, from the bug report, two separate issues are being
reported. The first involves large integers, which I can't reproduce on
w32 builds for 5.2.2 and 5.2.5, and should have anything to do with
string-to-double. The second involves floats to strings.
I'd argue that the first case shouldn't be happening, and I don't see
it, but nate's report appears to be consistent with this sort of thing.
The float complaints, however, is almost certainly all bogus, and needs
better documentation.
--
Edward Z. Yang GnuPG: 0x869C48DA
HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter
[[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]