#43053 [Ctl->Csd]: [PATCH] Regression: some numbers shown in scientific notation

From: Date: Mon, 15 Sep 2008 11:52:41 +0000
Subject: #43053 [Ctl->Csd]: [PATCH] Regression: some numbers shown in scientific notation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128985@lists.php.net to get a copy of this message
 ID:               43053
 Updated by:       dmitry@php.net
 Reported By:      owner at dragon-hearts dot net
-Status:           Critical
+Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: Centos4
 PHP Version:      5CVS-2007-10-25
 Assigned To:      dmitry
 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-09-15 00:53:20] johannes@php.net

Dmitry, what's your opinion on this?

------------------------------------------------------------------------

[2008-08-14 21:01:04] int-e at gmx dot de

That was just a small whitespace problem (5.2.6 had a lonely tab on an
otherwise empty line in main/snprintf.c. it's gone in 5.3.0alpha1). Try
this one.

http://int-e.home.tlink.de/php/php-5.3.0alpha1-printf.patch

------------------------------------------------------------------------

[2008-07-02 04:43:28] int-e at gmx dot de

In the hope that this speeds up fixing the bug, here's a version of
above patch that applies cleanly against php 5.2.6. The formatting of
the code in question is different in the subversion trunk, but it's the
same otherwise. At least that's how it was two months ago.

http://int-e.home.tlink.de/php/php-5.2.6-printf.patch

(use patch -p1 to apply)

------------------------------------------------------------------------

[2008-06-30 14:38:33] admin at shadowops dot net

This bug is not limited to the Round() and related commands.

I have been hit by it and it has caused many issues with MYSQL and
values entered into the DB.

1200000 in debug mode prints as 1.2E+6 this is why in the DB it simply
+1 insted of 1200000

------------------------------------------------------------------------

[2008-04-18 13:07:41] rbro at hotmail dot com

Thanks for your help - that definitely seems to fix the problem.  I
manually applied your changes since I wanted to test it against the PHP
5.2.5 source, but I'm getting consistent output now when working with
floats.

------------------------------------------------------------------------

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/43053

-- 
Edit this bug report at http://bugs.php.net/?id=43053&edit=1



Thread (39 messages)

« previous php.bugs (#128985) next »