php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31548 old float conversion bug re-rised in newest CVS(php4-STABLE-200501150130)
Submitted: 2005-01-14 10:37 UTC Modified: 2005-01-15 17:51 UTC
From: amonw at hotmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: php-4.3.x CVS OS: redhat linux 9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: amonw at hotmail dot com
New email:
PHP Version: OS:

 

 [2005-01-14 10:37 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-14 14:23 UTC] amonw at hotmail dot com
Sorry, made a mistake.

Expected result:
----------------
0.9
0.9
 [2005-01-14 17:28 UTC] 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-15 03:21 UTC] amonw at hotmail dot com
Sorry I didn't find it.
 [2005-01-15 04:44 UTC] amonw at hotmail dot com
But it still exists in the newest CVS(php4-STABLE-200501150130).
 [2005-01-15 17:51 UTC] derick@php.net
Please do not reopen it, as it is duplicate. And the other bug you refer to is "assigned", which means not fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 09:01:30 2024 UTC