From:             bugz at nagash dot org
Operating system: Unix \ FreeBSD \ Windows
PHP version:      4.3.4
PHP Bug Type:     Variables related
Bug description:  the same script with (float)"0xFFFFFF" shows different on different 
OS

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 bug report at http://bugs.php.net/?id=26959&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26959&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26959&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26959&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26959&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26959&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26959&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26959&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26959&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26959&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26959&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26959&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26959&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26959&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26959&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26959&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26959&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26959&r=float

Reply via email to