#31548 [Opn->Bgs]: old float conversion bug re-rised in newest CVS(php4-STABLE-200501150130)
| From: | derick@php.net | Date: | Sat, 15 Jan 2005 16:51:41 +0000 |
| Subject: | #31548 [Opn->Bgs]: old float conversion bug re-rised in newest CVS(php4-STABLE-200501150130) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72218@lists.php.net to get a copy of this message | ||
ID: 31548
Updated by: derick@php.net
Reported By: amonw at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: redhat linux 9
PHP Version: php-4.3.x CVS
New Comment:
Please do not reopen it, as it is duplicate. And the other bug you
refer to is "assigned", which means not fixed.
Previous Comments:
------------------------------------------------------------------------
[2005-01-15 04:44:58] amonw at hotmail dot com
But it still exists in the newest CVS(php4-STABLE-200501150130).
------------------------------------------------------------------------
[2005-01-15 03:21:21] amonw at hotmail dot com
Sorry I didn't find it.
------------------------------------------------------------------------
[2005-01-14 17:28:16] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Bug #30726
------------------------------------------------------------------------
[2005-01-14 14:23:57] amonw at hotmail dot com
Sorry, made a mistake.
Expected result:
----------------
0.9
0.9
------------------------------------------------------------------------
[2005-01-14 10:37:55] amonw at hotmail dot com
Description:
------------
An numeric string between -1 and 0 and without a leading zero can't be
converted correctly while php 4.2.2 can.
Reproduce code:
---------------
<?php
print "1"+"-.1";
$a="1";
$b="-.1";
print "\n";
print $a+$b;
?>
Expected result:
----------------
-0.9
-0.9
Actual result:
--------------
1
1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31548&edit=1