|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-04 13:14 UTC] tony2001@php.net
[2005-12-04 13:38 UTC] kervala at jpopdb dot net
[2005-12-04 14:28 UTC] kervala at jpopdb dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 08:00:01 2025 UTC |
Description: ------------ For my site, I used a piece of code which always worked fine. (see below) It's a simple PHP code using a "for" loop and variables manipulation. Reproduce code: --------------- for($i=date("Y")+1; $i>=1970; $years[$i] = $i--); print_r($years); Expected result: ---------------- In all previous PHP versions, it returned : 2006 => 2006, 2005 => 2005, etc... Actual result: -------------- It now returns : 2005 => 2006, 2004 => 2005, etc...