#26959 [Opn->Ver]: the same script with (float)"0xABCDEF" shows different on different OS

From: Date: Mon, 19 Jan 2004 18:17:36 +0000
Subject: #26959 [Opn->Ver]: the same script with (float)"0xABCDEF" shows different on different OS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53586@lists.php.net to get a copy of this message
ID: 26959 Updated by: sniper@php.net 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

« previous php.bugs (#53586) next »