ID: 26959
Updated by: [EMAIL PROTECTED]
Reported By: bugz at nagash dot org
-Status: Open
+Status: Verified
-Bug Type: Variables related
+Bug Type: Math related
Operating System: Unix \ FreeBSD \ Windows
-PHP Version: 4.3.4
+PHP Version: 4CVS, 5CVS
New Comment:
This works everywhere like it should:
echo (float) 0xABCDEF;
Previous Comments:
------------------------------------------------------------------------
[2004-01-19 00:26:42] bugz at nagash dot org
Description:
------------
echo (float)("0xABCDEF");
on the Windows XP and FreeBSD 4.9 it shows: "0"
on the Unix systems (tested slackware 8 and RedHat) AND MacOS it shows:
"11259375"
Reproduce code:
---------------
echo (float)("0xABCDEF");
Expected result:
----------------
I expected to see "11259375"
Actual result:
--------------
on the different system I see "0" or "11259375"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26959&edit=1