ID: 34370 Updated by: [EMAIL PROTECTED] Reported By: andreybl at matrix dot co dot il Status: Open -Bug Type: *General Issues +Bug Type: Documentation problem Operating System: RH EL 3.0 PHP Version: 5CVS-2005-09-05 (snap) New Comment:
Documentation should state this more clearly. Previous Comments: ------------------------------------------------------------------------ [2005-09-05 00:32:29] andreybl at matrix dot co dot il Description: ------------ inval() for negative hex number returns the max integer value. Reproduce code: --------------- $hex1 = intval("0xffffffff", 16); $hex2 = intval("0x7fffffff", 16); var_dump($hex1, $hex2); Expected result: ---------------- int(-1) int(2147483647) Actual result: -------------- int(2147483647) int(2147483647) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34370&edit=1