php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12709 Taking doubles inconistently out of strings.
Submitted: 2001-08-12 18:55 UTC Modified: 2002-06-18 18:45 UTC
From: tlhf_loves at hotmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.6 OS: Windows
Private report: No CVE-ID: None
 [2001-08-12 18:55 UTC] tlhf_loves at hotmail dot com
Try these to pieces of code:

$foo = 1.4 + "10.3 ";
$foo = 1.4 + "10.3";

In the first one $foo is equal to 11.4, but in the latter it's equal too 11.7.

Surly this isn't wanted.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-12 19:06 UTC] jeroen@php.net
Duplicate of bug#10437
 [2002-06-18 18:45 UTC] sniper@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 00:01:30 2024 UTC