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
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: 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 10:01:27 2024 UTC