|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-24 11:21 UTC] sjoerd@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 01:00:02 2025 UTC |
Description: ------------ Counting doesn't appear to wrap properly at 32 bits Reproduce code: --------------- $xxx=0; while (true) { $xxx++; if ($xxx%10000000 == 0) print $xxx . "\n"; } Expected result: ---------------- 10000000 20000000 30000000 40000000 50000000 ...(etc) 2120000000 2130000000 2140000000 2150000000 2160000000 2170000000 2180000000 Actual result: -------------- 10000000 20000000 30000000 40000000 50000000 ...(etc) 2120000000 2130000000 2140000000 2154967296 2164967296 2174967296 2184967296