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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tlhf_loves at hotmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 09:01:28 2025 UTC