|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-10 14:10 UTC] jani@php.net
[2007-07-10 14:38 UTC] rachmel at avaya dot com
[2007-07-11 07:22 UTC] tony2001@php.net
[2007-07-11 07:29 UTC] rachmel at avaya dot com
[2007-07-11 07:40 UTC] jani@php.net
[2007-07-11 13:34 UTC] rachmel at avaya dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 22:00:02 2025 UTC |
Description: ------------ I am cross compiling php from i686-red-hat linux plat to ppc-windriver linux plat. The problem I see, is that when trying to assign a value bigger than MAX_INT (2147483648-1), the variable gets the value of MAX_INT-1. This is not just an explicit variable issue. Just trying to 'echo' the same value results in the same problem. When compiling for my i686 platform, this problem doesn't occur. I am upgrading from php 5.1.4, and I didn't have any problems in that version. Reproduce code: --------------- <?php $a = 0x8fffffff; $b = 2415919103; var_dump($a); var_dump($b); ?> Expected result: ---------------- float(2415919103) float(2415919103) Actual result: -------------- int(2147483647) int(2147483647)