The hexdec test fails on 64 bit machines, because two big numbers still
fit into a PHP integer (on 32 bit, these are automatically converted
into floats):

================================================================================
/house/elmicha/local/src/php4-STABLE-200211152030/ext/standard/tests/math/hexdec.phpt
================================================================================

---- EXPECTED OUTPUT
int(74565)
int(74565)
int(74565)
int(74565)
int(74565)
float(78187069441)
float(6442450943)
---- ACTUAL OUTPUT
int(74565)
int(74565)
int(74565)
int(74565)
int(74565)
int(78187069441)
int(6442450943)
---- FAILED

================================================================================
006- float(78187069441)
006+ int(78187069441)
007- float(6442450943)
007+ int(6442450943)
================================================================================


Patch:

--- ext/standard/tests/math/hexdec.phpt~        Thu Oct  3 22:34:15 2002
+++ ext/standard/tests/math/hexdec.phpt Sat Nov 16 19:38:30 2002
@@ -8,8 +8,8 @@
 var_dump(hexdec("q12345"));
 var_dump(hexdec("12345+?!"));
 var_dump(hexdec("12345q"));
-var_dump(hexdec("1234500001"));
-var_dump(hexdec("17fffffff"));
+var_dump((float)hexdec("1234500001"));
+var_dump((float)hexdec("17fffffff"));
 
 ?>
 --EXPECT--


Regards...
                Michael

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to