|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-05 08:56 UTC] sniper@php.net
[2005-09-05 10:57 UTC] vrana@php.net
[2005-09-05 12:18 UTC] andreybl at matrix dot co dot il
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 11:00:01 2025 UTC |
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)