php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27924 CAST PROBLEM
Submitted: 2004-04-08 19:35 UTC Modified: 2004-04-08 19:37 UTC
From: roberto at spadim dot com dot br Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.0.0RC1 OS: linux 2.4.22
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: roberto at spadim dot com dot br
New email:
PHP Version: OS:

 

 [2004-04-08 19:35 UTC] roberto at spadim dot com dot br
Description:
------------
casting to double make variable with error... like:
$a="0";
$b=(double)($a);
echo "".$b;
// this give me 
// -0


Reproduce code:
---------------
<?
$a="0";
$b=(double)($a);
echo "".$b;
?>

Expected result:
----------------
0

Actual result:
--------------
-0

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-08 19:37 UTC] sniper@php.net
Works fine here. (and you gave way too little information about your system for us to process this bug report further)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 11:01:27 2024 UTC